Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 18 Aug 2011
Offline Last Active Private

Posts I've Made

In Topic: cmake "game" target

25 October 2015 - 11:47 PM

Would it be enough to simply remove the last line in the angelscript/projects/cmake/CMakeLists.txt?

Yeah, plus a small tweak; with config like below game will be built only when user wants to, and totally ignored if all he wants is a library.

In Topic: cmake "game" target

25 October 2015 - 02:12 PM

It's a small detail really, but "game" should be available for top-level CMakeLists if AS is added there via add_subdirectory().

Speaking of using AngelScript as subproject, can you recommend any git mirror which is frequently updated and have zero modifications? I keep finding ones which sooner or later are abandoned or start changing stuff.

In Topic: Array trailing comma

04 October 2014 - 07:08 PM

Why would you want that though?

I know why i would.

Not long ago i got a weird crash when loading bytecode containing funcdef array with extra comma. Nothing tried to access last element, couldn't reproduce it, happens only on linux version of application... I'd enable it just to make sure other scripters don't screwup anything - finding single comma in big codebase is not fun at all :]

In Topic: #define preprocessor directives from within Angelscript

09 September 2014 - 01:33 PM

You may want to take a look at preprocessor written years ago by Anthony Casteel. Can't see the anything linking to it on the page itself, but fast googling shows that it's still around. Other than #define and friends, you'll also get #include and skeleton for #pragma what should be enough even for bigger scripts.

In Topic: Unregister function?

08 June 2014 - 08:40 PM

Thanks, definitely will be useful smile.png