Version compiler control directive?

Just wondering if there is a compiler control directive that allows for different code for different versions of Gauss. Something like

#ifversion20;[Commands for v20 and above]#else;[Commands for v19 and below]#endif;

If not, how can I best write code that 1) uses version-20 specific commands and 2) also runs on previous versions?

Thank you, Tue

1 Answer


Yes, you can use #ifminkernelversion for this purpose. It takes an argument with the version number. Here is a simple example:

    print "using version 20 or newer";
    print "older version";

You must login to post answers.

Have a Specific Question?

Get a real answer from a real person

Need Support?

Get help from our friendly experts.

Try GAUSS for 14 days for FREE

See what GAUSS can do for your data

© Aptech Systems, Inc. All rights reserved.

Privacy Policy