Monday, December 11th 2017, 6:04pm UTC+1

You are not logged in.

  • Login
  • Register

fubo73

Beginner

Date of registration: Sep 26th 2017

Posts: 2

1

Tuesday, September 26th 2017, 10:50am

[SOLVED] How get value of a pointer in a variable in Ozone script

Hi all,

I would want to load in an Ozone script variable the value or address of a symbol defined in elf file. Something like:

C/C++ Source code

1
var = Elf.GetVal("&variable")

Is it possible?

Thanks in advance.

This post has been edited 1 times, last edit by "fubo73" (Sep 26th 2017, 10:51am)


SEGGER - Johannes

Super Moderator

Date of registration: Aug 31st 2012

Posts: 364

2

Wednesday, September 27th 2017, 4:21pm

Hi,

Yes, it is possible with this command:

C/C++ Source code

1
var = Elf.GetExprValue("&variable");


Regards
Johannes

fubo73

Beginner

Date of registration: Sep 26th 2017

Posts: 2

3

Wednesday, September 27th 2017, 6:14pm

Thanks, it worked!