|
#define | ANGELSCRIPT_VERSION 21601 |
|
#define | asFUNCTION(f) asFunctionPtr(f) |
| Returns an asSFuncPtr representing the function specified by the name.
|
|
#define | asFUNCTIONPR(f, p, r) asFunctionPtr((void (*)())((r (*)p)(f))) |
| Returns an asSFuncPtr representing the function specified by the name, parameter list, and return type.
|
|
#define | asMETHOD(c, m) asSMethodPtr<sizeof(void (c::*)())>::Convert((void (c::*)())(&c::m)) |
| Returns an asSFuncPtr representing the class method specified by class and method name.
|
|
#define | asMETHODPR(c, m, p, r) asSMethodPtr<sizeof(void (c::*)())>::Convert((r (c::*)p)(&c::m)) |
| Returns an asSFuncPtr representing the class method specified by class, method name, parameter list, return type.
|
|
#define | AS_API |
| A define that specifies how the function should be imported.
|
|
|
enum | asEEngineProp {
asEP_ALLOW_UNSAFE_REFERENCES = 1,
asEP_OPTIMIZE_BYTECODE = 2,
asEP_COPY_SCRIPT_SECTIONS = 3,
asEP_MAX_STACK_SIZE = 4,
asEP_USE_CHARACTER_LITERALS = 5,
asEP_ALLOW_MULTILINE_STRINGS = 6,
asEP_ALLOW_IMPLICIT_HANDLE_TYPES = 7,
asEP_BUILD_WITHOUT_LINE_CUES = 8,
asEP_INIT_GLOBAL_VARS_AFTER_BUILD = 9,
asEP_REQUIRE_ENUM_SCOPE = 10
} |
| Engine properties. More...
|
|
enum | asECallConvTypes {
asCALL_CDECL = 0,
asCALL_STDCALL = 1,
asCALL_THISCALL = 2,
asCALL_CDECL_OBJLAST = 3,
asCALL_CDECL_OBJFIRST = 4,
asCALL_GENERIC = 5
} |
| Calling conventions. More...
|
|
enum | asEObjTypeFlags {
asOBJ_REF = 0x01,
asOBJ_VALUE = 0x02,
asOBJ_GC = 0x04,
asOBJ_POD = 0x08,
asOBJ_NOHANDLE = 0x10,
asOBJ_SCOPED = 0x20,
asOBJ_TEMPLATE = 0x40,
asOBJ_APP_CLASS = 0x100,
asOBJ_APP_CLASS_CONSTRUCTOR = 0x200,
asOBJ_APP_CLASS_DESTRUCTOR = 0x400,
asOBJ_APP_CLASS_ASSIGNMENT = 0x800
,
asOBJ_APP_PRIMITIVE = 0x1000,
asOBJ_APP_FLOAT = 0x2000
,
asOBJ_SCRIPT_OBJECT = 0x10000
} |
| Object type flags. More...
|
|
enum | asEBehaviours {
asBEHAVE_CONSTRUCT,
asBEHAVE_DESTRUCT,
asBEHAVE_FACTORY,
asBEHAVE_ADDREF,
asBEHAVE_RELEASE,
asBEHAVE_VALUE_CAST,
asBEHAVE_IMPLICIT_VALUE_CAST,
asBEHAVE_INDEX,
asBEHAVE_NEGATE
,
asBEHAVE_ASSIGNMENT = asBEHAVE_FIRST_ASSIGN,
asBEHAVE_ADD_ASSIGN,
asBEHAVE_SUB_ASSIGN,
asBEHAVE_MUL_ASSIGN,
asBEHAVE_DIV_ASSIGN,
asBEHAVE_MOD_ASSIGN,
asBEHAVE_OR_ASSIGN,
asBEHAVE_AND_ASSIGN,
asBEHAVE_XOR_ASSIGN,
asBEHAVE_SLL_ASSIGN,
asBEHAVE_SRL_ASSIGN,
asBEHAVE_SRA_ASSIGN
,
asBEHAVE_ADD = asBEHAVE_FIRST_DUAL,
asBEHAVE_SUBTRACT,
asBEHAVE_MULTIPLY,
asBEHAVE_DIVIDE,
asBEHAVE_MODULO,
asBEHAVE_EQUAL,
asBEHAVE_NOTEQUAL,
asBEHAVE_LESSTHAN,
asBEHAVE_GREATERTHAN,
asBEHAVE_LEQUAL,
asBEHAVE_GEQUAL,
asBEHAVE_BIT_OR,
asBEHAVE_BIT_AND,
asBEHAVE_BIT_XOR,
asBEHAVE_BIT_SLL,
asBEHAVE_BIT_SRL,
asBEHAVE_BIT_SRA
,
asBEHAVE_REF_CAST,
asBEHAVE_IMPLICIT_REF_CAST
,
asBEHAVE_GETREFCOUNT = asBEHAVE_FIRST_GC,
asBEHAVE_SETGCFLAG,
asBEHAVE_GETGCFLAG,
asBEHAVE_ENUMREFS,
asBEHAVE_RELEASEREFS
} |
| Behaviours. More...
|
|
enum | asERetCodes {
asSUCCESS = 0,
asERROR = -1,
asCONTEXT_ACTIVE = -2,
asCONTEXT_NOT_FINISHED = -3,
asCONTEXT_NOT_PREPARED = -4,
asINVALID_ARG = -5,
asNO_FUNCTION = -6,
asNOT_SUPPORTED = -7,
asINVALID_NAME = -8,
asNAME_TAKEN = -9,
asINVALID_DECLARATION = -10,
asINVALID_OBJECT = -11,
asINVALID_TYPE = -12,
asALREADY_REGISTERED = -13,
asMULTIPLE_FUNCTIONS = -14,
asNO_MODULE = -15,
asNO_GLOBAL_VAR = -16,
asINVALID_CONFIGURATION = -17,
asINVALID_INTERFACE = -18,
asCANT_BIND_ALL_FUNCTIONS = -19,
asLOWER_ARRAY_DIMENSION_NOT_REGISTERED = -20,
asWRONG_CONFIG_GROUP = -21,
asCONFIG_GROUP_IS_IN_USE = -22,
asILLEGAL_BEHAVIOUR_FOR_TYPE = -23,
asWRONG_CALLING_CONV = -24,
asMODULE_IS_IN_USE = -25,
asBUILD_IN_PROGRESS = -26
} |
| Return codes. More...
|
|
enum | asEContextState {
asEXECUTION_FINISHED = 0,
asEXECUTION_SUSPENDED = 1,
asEXECUTION_ABORTED = 2,
asEXECUTION_EXCEPTION = 3,
asEXECUTION_PREPARED = 4,
asEXECUTION_UNINITIALIZED = 5,
asEXECUTION_ACTIVE = 6,
asEXECUTION_ERROR = 7
} |
| Context states. More...
|
|
enum | asEExecStrFlags {
asEXECSTRING_ONLY_PREPARE = 1,
asEXECSTRING_USE_MY_CONTEXT = 2
} |
| ExecuteString flags. More...
|
|
enum | asEMsgType {
asMSGTYPE_ERROR = 0,
asMSGTYPE_WARNING = 1,
asMSGTYPE_INFORMATION = 2
} |
| Compiler message types. More...
|
|
enum | asEGCFlags {
asGC_FULL_CYCLE = 1,
asGC_ONE_STEP = 2,
asGC_DESTROY_GARBAGE = 4,
asGC_DETECT_GARBAGE = 8
} |
| Garbage collector flags. More...
|
|
enum | asETokenClass {
asTC_UNKNOWN = 0,
asTC_KEYWORD = 1,
asTC_VALUE = 2,
asTC_IDENTIFIER = 3,
asTC_COMMENT = 4,
asTC_WHITESPACE = 5
} |
| Token classes. More...
|
|
enum | asETypeIdFlags {
asTYPEID_VOID = 0,
asTYPEID_BOOL = 1,
asTYPEID_INT8 = 2,
asTYPEID_INT16 = 3,
asTYPEID_INT32 = 4,
asTYPEID_INT64 = 5,
asTYPEID_UINT8 = 6,
asTYPEID_UINT16 = 7,
asTYPEID_UINT32 = 8,
asTYPEID_UINT64 = 9,
asTYPEID_FLOAT = 10,
asTYPEID_DOUBLE = 11,
asTYPEID_OBJHANDLE = 0x40000000,
asTYPEID_HANDLETOCONST = 0x20000000,
asTYPEID_MASK_OBJECT = 0x1C000000,
asTYPEID_APPOBJECT = 0x04000000
,
asTYPEID_SCRIPTOBJECT = 0x0C000000,
asTYPEID_SCRIPTARRAY = 0x10000000,
asTYPEID_MASK_SEQNBR = 0x03FFFFFF
} |
| Type id flags. More...
|
|
enum | asETypeModifiers {
asTM_NONE = 0,
asTM_INREF = 1,
asTM_OUTREF = 2,
asTM_INOUTREF = 3
} |
| Type modifiers. More...
|
|
enum | asEGMFlags {
asGM_ONLY_IF_EXISTS = 0,
asGM_CREATE_IF_NOT_EXISTS = 1,
asGM_ALWAYS_CREATE = 2
} |
| Flags for GetModule. More...
|
|
This header file describes the complete application programming interface for AngelScript.
- Returns
- A pointer to the currently executing context, or null if no context is executing.
This function is most useful for registered functions, as it will allow them to obtain a pointer to the context that is calling the function, and through that get the engine, or custom user data.
If the script library is compiled with multithread support, this function will return the context that is currently active in the thread that is being executed. It will thus work even if there are multiple threads executing scripts at the same time.