Author Topic: Inside in VL-Lisp or in-Vlide, exists #ifdef or $ifdef  (Read 1212 times)

0 Members and 1 Guest are viewing this topic.

d2010

  • Bull Frog
  • Posts: 326
Inside in VL-Lisp or in-Vlide, exists #ifdef or $ifdef
« on: May 06, 2020, 11:05:14 AM »
Code: [Select]
ObjectArx, C++,
#ifdef __GNUC__
#include <tr1/type_traits>
#endif

But the Vlisp or AutoLisp, I can define #ifdef?
 :whistling:
Code: [Select]
const
  {The name of the debug info support DLL}
  {$IFDEF MACOS}
  FullDebugModeLibraryName32Bit = 'libFastMM_FullDebugMode.dylib';
  {$ELSE}
  FullDebugModeLibraryName32Bit = 'FastMM_FullDebugMode.dll';
  {$ENDIF}



JohnK

  • Administrator
  • Seagull
  • Posts: 10646
Re: Inside in VL-Lisp or in-Vlide, exists #ifdef or $ifdef
« Reply #1 on: May 06, 2020, 11:55:50 AM »
The AutoLisp language does not have preprocessor directives--because it's not a compiled language--but I wrote a little preprocessor utility you can use to use a similar workflow like that in compiled languages like C.

https://www.theswamp.org/index.php?topic=37700.msg427343#msg427343

The preprocessor utility linked above will work on any TEXT based file(s); and you can use it to build web pages, config documents, etc.. For example, I used it to streamline some C# development in Visual Studio.

https://www.theswamp.org/index.php?topic=50241.msg553930#msg553930
TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org