MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ symbol_address()

MAYAFLUX_HOST_API Result< void * > MayaFlux::Host::symbol_address ( const std::string & name)

Address of a symbol defined in the running session.

Parameters
nameSymbol name.
Returns
The address, or the reason there is none.

Definition at line 379 of file Session.cpp.

380{
381 auto instance = running_instance();
382 if (!instance) {
383 return refuse("no active session");
384 }
385
386 void* address = instance->get_symbol_address(name);
387 if (!address) {
388 return refuse("symbol not found: " + name);
389 }
390 return address;
391}