42 #include "as_config.h" 43 #include "as_symboltable.h" 44 #include "as_atomic.h" 45 #include "as_string.h" 46 #include "as_memory.h" 47 #include "as_datatype.h" 48 #include "as_scriptfunction.h" 49 #include "as_property.h" 54 const int FUNC_IMPORTED = 0x40000000;
99 virtual void SetName(
const char *name);
100 virtual const char *GetName()
const;
101 virtual void Discard();
104 virtual int AddScriptSection(
const char *name,
const char *code,
size_t codeLength,
int lineOffset);
106 virtual int CompileFunction(
const char *sectionName,
const char *code,
int lineOffset, asDWORD reserved,
asIScriptFunction **outFunc);
107 virtual int CompileGlobalVar(
const char *sectionName,
const char *code,
int lineOffset);
108 virtual asDWORD SetAccessMask(asDWORD accessMask);
109 virtual int SetDefaultNamespace(
const char *nameSpace);
110 virtual const char *GetDefaultNamespace()
const;
113 virtual asUINT GetFunctionCount()
const;
122 virtual asUINT GetGlobalVarCount()
const;
123 virtual int GetGlobalVarIndexByName(
const char *name)
const;
124 virtual int GetGlobalVarIndexByDecl(
const char *decl)
const;
125 virtual const char *GetGlobalVarDeclaration(asUINT index,
bool includeNamespace)
const;
126 virtual int GetGlobalVar(asUINT index,
const char **name,
const char **nameSpace,
int *typeId,
bool *isConst)
const;
127 virtual void *GetAddressOfGlobalVar(asUINT index);
128 virtual int RemoveGlobalVar(asUINT index);
131 virtual asUINT GetObjectTypeCount()
const;
132 virtual asITypeInfo *GetObjectTypeByIndex(asUINT index)
const;
133 virtual int GetTypeIdByDecl(
const char *decl)
const;
134 virtual asITypeInfo *GetTypeInfoByName(
const char *name)
const;
135 virtual asITypeInfo *GetTypeInfoByDecl(
const char *decl)
const;
138 virtual asUINT GetEnumCount()
const;
139 virtual asITypeInfo *GetEnumByIndex(asUINT index)
const;
142 virtual asUINT GetTypedefCount()
const;
143 virtual asITypeInfo *GetTypedefByIndex(asUINT index)
const;
146 virtual asUINT GetImportedFunctionCount()
const;
147 virtual int GetImportedFunctionIndexByDecl(
const char *decl)
const;
148 virtual const char *GetImportedFunctionDeclaration(asUINT importIndex)
const;
149 virtual const char *GetImportedFunctionSourceModule(asUINT importIndex)
const;
151 virtual int UnbindImportedFunction(asUINT importIndex);
152 virtual int BindAllImportedFunctions();
153 virtual int UnbindAllImportedFunctions();
156 virtual int SaveByteCode(
asIBinaryStream *out,
bool stripDebugInfo)
const;
157 virtual int LoadByteCode(
asIBinaryStream *in,
bool *wasDebugInfoStripped);
160 virtual void *SetUserData(
void *data, asPWORD type);
161 virtual void *GetUserData(asPWORD type)
const;
174 friend class asCRestore;
176 void InternalReset();
177 bool IsEmpty()
const;
178 bool HasExternalReferences(
bool shuttingDown);
186 #ifndef AS_NO_COMPILER 187 int AddScriptFunction(
int sectionIdx,
int declaredAt,
int id,
const asCString &name,
const asCDataType &returnType,
const asCArray<asCDataType> ¶ms,
const asCArray<asCString> ¶mNames,
const asCArray<asETypeModifiers> &inOutFlags,
const asCArray<asCString *> &defaultArgs,
bool isInterface,
asCObjectType *objType = 0,
bool isGlobalFunction =
false,
asSFunctionTraits funcTraits =
asSFunctionTraits(),
asSNameSpace *ns = 0);
193 int GetNextImportedFunctionId();
215 asDWORD m_accessMask;
231 bool m_isGlobalVarInitialized;
Definition: as_module.h:93
Definition: angelscript.h:1083
Definition: as_typeinfo.h:64
Definition: as_builder.h:140
Definition: angelscript.h:793
Definition: as_scriptfunction.h:146
Definition: as_objecttype.h:100
Definition: angelscript.h:863
Definition: as_namespace.h:39
Definition: as_scriptfunction.h:114
Definition: as_configgroup.h:50
Definition: as_module.h:71
Definition: as_compiler.h:209
Definition: as_typeinfo.h:263
Definition: as_datatype.h:60
Definition: as_module.h:65
Definition: as_property.h:68
Definition: angelscript.h:1145
Definition: as_typeinfo.h:277
Definition: as_typeinfo.h:292
Definition: as_context.h:54
Definition: as_scriptengine.h:64
Definition: angelscript.h:639
Definition: angelscript.h:1011
Definition: as_string.h:41