Jump to content
Remember me This is not recommended for shared computers
Sign in anonymously Don't add me to the active users list
FDsagizi hasn't added any contacts yet.
19 April 2013 - 02:09 AM
Hy
this method:
AS_API int asSetGlobalMemoryFunctions(asALLOCFUNC_t allocFunc, asFREEFUNC_t freeFunc);
work only with AngelScript engine, module, contex, but - AS have addons.
07 April 2013 - 09:43 PM
Hi Andreas
with asEP_ALWAYS_IMPL_DEFAULT_CONSTRUCT we can create all objects from c++ code, for deserealization - It work fine!
but, for scripts, i think no need use this.
exemple:
this code work, but it's not goood
class SomeClass{ SomeClass( int init_param ){} } void f(){ SomeClass s; }
15 February 2013 - 02:38 AM
Hi
I think variant "b is a" - valid, but compiler say no
class A{} class B : A{} void startGame( string ¶m ) { A @a; B @b; if( a is b ) {} if( b is a ) // No conversion from 'A@&' to 'B@' available. {} }
11 February 2013 - 10:19 PM
script code:
// Global scope Object @obj = CraeteObject();
// C++ Object *CreateObject() { asIScriptContext *ctx = asGetActiveContext(); assert( ctx ); int stack_size = ctx->GetCallstackSize(); if( stack_size > 0 ) { const char *script_section; int line = ctx->GetLineNumber(0, 0, &script_section); // Crash } }
11 February 2013 - 04:25 AM
I update from svn to new version, and i have asserts on debug compilation! But last version compilated with out asserts!
If i comment code:
// At this point there should be no variables allocated //asASSERT(variableAllocations.GetLength() == freeVariables.GetLength());