Re: Possible Orx Game Engine Wrapper

new topic     » goto parent     » topic index » view thread      » older message » newer message
Icy_Viking said...

I notice that Orx_Debug is exported in the DLL. That function is called in Orx_Execute. However Orx_Execute is not exported as its an inline function as you've mentioned. Orx_Debug is the first function called inside of Orx_Execute.

orx_Execute starts out like this:

static orxINLINE void orx_Execute(orxU32 _u32NbParams, orxSTRING _azParams[], const orxMODULE_INIT_FUNCTION _pfnInit, const orxMODULE_RUN_FUNCTION _pfnRun, const orxMODULE_EXIT_FUNCTION _pfnExit) 
{ 
  /* Inits the Debug System */ 
  orxDEBUG_INIT(); 
 
  /* Checks */ 
  orxASSERT(_u32NbParams > 0); 
  orxASSERT(_azParams != orxNULL); 
  orxASSERT(_pfnRun != orxNULL); 
 
  /* Registers main module */ 
  orxModule_Register(orxMODULE_ID_MAIN, "MAIN", orx_MainSetup, _pfnInit, _pfnExit); 

Those first few lines are all macros. Both are defined in orxDebug.h on lines 220 and 316, respectively. These should be wrapped as Euphoria routines with the appropriate ifdef statements to reconstruct the same behavior.

-Greg

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu