Hi,
In as_scriptobject.cpp (L:189), there is this registration:
// Weakref behaviours
r = engine->RegisterBehaviourToObjectType(&engine->scriptTypeBehaviours, asBEHAVE_GET_WEAKREF_FLAG, "int &f()", asMETHOD(asCScriptObject,GetWeakRefFlag), asCALL_THISCALL, 0); asASSERT( r >= 0 );
But, in case of AS_MAX_PORTABILITY, there isn't this registration.
Is this a bug?