Host object APIs: Difference between revisions

m
Line 23: Line 23:


The "host" string is provided to the GlobalOptimizer invocation.  The generated header introduces all the "host_" symbols.  The data can be provided as is or the host can provide alternate data, for instance maybe the data isn't compiled into the application but loaded from the disk.  "avm" is an opaque pointer that's really an AbcEnv under the covers but that shouldn't be exposed.
The "host" string is provided to the GlobalOptimizer invocation.  The generated header introduces all the "host_" symbols.  The data can be provided as is or the host can provide alternate data, for instance maybe the data isn't compiled into the application but loaded from the disk.  "avm" is an opaque pointer that's really an AbcEnv under the covers but that shouldn't be exposed.
The ultimate goal is to the have the C++ hosting API entirely based on the generated headers and have none of the VM's internals exposed to the host application.


==Storing C++ pointers in JS==
==Storing C++ pointers in JS==
7

edits