TestReturn failed
I'll download the latest MinGW compiler and see if I can figure out what's going on.
The warnings you are receiving are unrelated to your problem. They are only warnings and the tests works as supposed.
AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game
Maybe you set some configurations that I didn't. Could you send me the project files for AngelScript and test_feature that you used? Or maybe tell me what you changed from the default settings.
AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game
So, until I can get this fixed I recommend that you turn off optimizations for the library.
AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game
asDWORD GetReturnedFloat(){ asDWORD f;#if defined ASM_INTEL // Get the float value from ST0 __asm fstp dword ptr [f]#elif defined ASM_AT_N_T asm("fstps %0 \n" : "=m" (f));#endif return f;}asQWORD GetReturnedDouble(){ asQWORD d;#if defined ASM_INTEL // Get the double value from ST0 __asm fstp qword ptr [d]#elif defined ASM_AT_N_T asm("fstpl %0 \n" : "=m" (d));#endif return d;}
I'd like to credit you for reporting the bug. Would you mind telling me your real name?
AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game
Glad to help. After "patch" this test works ok. My real name is Marcin Zajaczkowski.
I have one more question. In test_multithread I had to change
#include "../../add_on/stdstr/stdstr.h"
to#include "../../add_on/std_string/stdstring.h"
in utils.h to compile. I'm not sure if stdstr.h and stdstring.h is the same, but I couldn't find it in tarball and "Utils & add-ons".After this I have
TestSharedString: Shared strings don't work as they should
I don't know is it related with this include.
Regards
Marcin
The stdstr and the stdstring are the same source. I forgot to update the multithreaded test though, thanks for letting me know.
In order for the multithreaded test to work, the AS library has to be compiled with the preprocessor flag USE_THREADS defined. Description on this and other flags can be found in as_config.h.
Regards,
Andreas
AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game
Has this option any side effect? Or it's disabled by default due to portability?
Thanks for help
Marcin
There is a slight overhead when turning on multithreaded support because of need to use critical sections to protect the reference counting. But the actual execution of the script code shouldn't be affected.
The multithreaded support is also only available on Windows.
AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game