Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 09 Dec 2012
Offline Last Active Oct 17 2015 07:31 PM

Posts I've Made

In Topic: Possible dictionary optimization

28 July 2015 - 04:21 PM

I second the typedef, I too use a custom string class. Although I'll still have to edit the internals, as I use reference counted strings not value type.

In Topic: Change to test_feature gnuc makefile

27 July 2015 - 08:17 PM

I don't compile it that often, only when I'm working on a patch such as the get/setter one. I've changed the makefile a few times by hand, and every time I mean to ask for it to be changed.

In Topic: Question about inheritance

25 July 2015 - 10:48 PM

I'm sure andreas will give a better answer but:


1. You have to create the class instance using asIScriptEngine::CreateScriptObject, you pass it a copy of asIScriptObject that you can obtain by using GetObjectType functions. Then you can prepare a method inside of the class for execution, then use SetObject in asIScriptContext before executing:

asIObjectType *objType  = module->GetObjectTypeByName("MyClass");
asIScriptFunction *func = objType->GetMethodByDecl("void foo()");

void *obj = context->CreateScriptObject(objType);

context would be a instance of asIScriptContext.


2. This is explained and has examples in the documentation, see http://angelcode.com/angelscript/sdk/docs/manual/doc_register_val_type.html#doc_reg_val_1

In Topic: TestExceptionMemory fails on Linux

11 July 2015 - 04:21 PM

Thanks, it works on Fedora 22, all tests pass. Anytime you need access just use the same login, if it's down for some reason PM me.

In Topic: TestExceptionMemory fails on Linux

09 July 2015 - 10:57 PM

I recently switched my laptop to Fedora 22 and it also fails this test:http://pastebin.com/zYddH5vg, I'm not seeing a easy way to install older GCC versions in Fedora like you can in Ubuntu, if I figure out a way I'll test with older versions (specifically 4.8.x which works for you).