API Reference | developer.brewmp.com API Reference | developer.brewmp.com

Developer

API Reference

FUNCTION: SETSTATICPTR()

Brew Release
Brew MP 1.0.2
See Also
SETTLS() SETSTACKBOTTOM() GETTLS() Helper Functions
Description
Sets a pre-defined static pointer in BREW, and returns the old value.
Params
nSPId
[]:
the id of the static pointer, one
pNew
[]:
The new value.
Prototype
  •    void *SETSTATICPTR(int nSPId, void *pNew);
    
Return
  • The old value.
Side Effect
  • AEESPID_STACKBOTTOM and AEESPID_TLS are used by BREW to do stack checking. For this reason, only user-thread packages or BREW system code should normally call SETSTATICPTR() with these IDs.
Comments
Only pre-defined IDs are supported; calling this function with anything else will generate an exception. Use with caution.