Browse Source

Unify to type bool

pre-master-46
Holger Vogt 1 year ago
parent
commit
3ca51e47b2
  1. 9
      src/include/ngspice/sharedspice.h

9
src/include/ngspice/sharedspice.h

@ -167,15 +167,8 @@ struct ngcomplex {
typedef struct ngcomplex ngcomplex_t; typedef struct ngcomplex ngcomplex_t;
#endif #endif
/* NG_BOOL is the boolean variable at the ngspice interface.
When ompiling ngspice shared module, typedef to _BOOL, which is boolean in C,
when used externally, keep it to be of type bool,
as has been available in the past. */
#ifndef SHARED_MODULE
/* NG_BOOL is the boolean variable at the ngspice interface.*/
typedef bool NG_BOOL; typedef bool NG_BOOL;
#else
typedef _Bool NG_BOOL;
#endif
/* vector info obtained from any vector in ngspice.dll. /* vector info obtained from any vector in ngspice.dll.
Allows direct access to the ngspice internal vector structure, Allows direct access to the ngspice internal vector structure,

Loading…
Cancel
Save