This code cannot be compiled (BGDC 1.0.0 (Jul 2 2009 17:50:17)):
[code language="bennu"]import "mod_say"
begin
#ifdef __VERSION__
say( __VERSION__ );
#endif
end
[/code]
Is it possible to use __VERSION__ constant anywhere except #ifdef ?
ya veo, algo que no tuve en cuenta, version es 1.0.0, y no es string, es un numero, pero un numero con 2 decimales no puede ser posible, voy a tener que cambiar eso y quitar el utlimo .0
Yes, it would be more useful if it were defined as "1.0.0" not 1.0.0 :)
yes, but not... I want perform comparations like if __VERSION__ < 1.0
My original intention was showing bgdc/bgdi version in application to simplify bug reporting. Any solution will good for me.
In the next version this will be fixed.
import "mod_say"
begin
say(__VERSION__);
say(COMPILER_VERSION);
say(__BGD__);
say(__BGD_MINOR__);
say(__BGD_PATCHLEVEL__);
end
output:
Quote
1.0.0
1.0.0
1
0
0
__VERSION__ (string)
COMPILER_VERSION (string)
__BGD__ (int)
__BGD_MINOR__ (int)
__BGD_PATCHLEVEL__ (int)
Quote from: EugeneP on July 28, 2010, 09:09:07 AM
This code cannot be compiled (BGDC 1.0.0 (Jul 2 2009 17:50:17)):
[code language="bennu"]import "mod_say"
begin
#ifdef __VERSION__
say( __VERSION__ );
#endif
end
[/code]
Is it possible to use __VERSION__ constant anywhere except #ifdef ?
karma for you!
Thanks and thanks.
svn was updated yesterday, if you can build binaries, you can do it.
It is posible to determine the version of the release, to do a game working only with a specific release/version ?
you now have the new version for download with this fix.