Ardour
9.0-pre0-350-gf17a656217
|
Go to the source code of this file.
Classes | |
class | Userdata |
class | UserdataValue< T > |
class | UserdataPtr |
class | UserdataShared< C > |
struct | UserdataSharedHelper< C, makeObjectConst > |
struct | Stack< T > |
struct | Stack< T * > |
struct | Stack< T *const > |
struct | Stack< T const * > |
struct | Stack< T const *const > |
struct | Stack< T *const & > |
struct | Stack< T & > |
struct | Stack< T const & > |
Functions | |
void * | getIdentityKey () |
|
inline |
Return the identity pointer for our lightuserdata tokens.
LuaBridge metatables are tagged with a security "token." The token is a lightuserdata created from the identity pointer, used as a key in the metatable. The value is a boolean = true, although any value could have been used.
Because of Lua's dynamic typing and our improvised system of imposing C++ class structure, there is the possibility that executing scripts may knowingly or unknowingly cause invalid data to get passed to the C functions created by LuaBridge. In particular, our security model addresses the following:
Notes:
Definition at line 63 of file Userdata.h.