NEURON
consist.cpp File Reference
#include <../../nrnconf.h>
#include "modl.h"
#include "parse1.hpp"
#include "symbol.h"
#include <cstdlib>

Go to the source code of this file.

Macros

#define con(arg1, arg2, arg3)
 

Functions

int is_var_declared_as_function (Symbol *s)
 Check if variable declared in NEURON block is conflicting with a PROCEDURE or FUNCTION. More...
 
void consistency ()
 

Variables

Symbolscop_indep
 
Symbolindepsym
 
int vectorize
 

Macro Definition Documentation

◆ con

#define con (   arg1,
  arg2,
  arg3 
)
Value:
if (t & (arg2)) \
if (t & (~(arg2 | arg3))) { \
Fprintf(stderr, "%s is a %s\n", s->name, arg1); \
err = 1; \
}
s
Definition: multisend.cpp:521

Definition at line 18 of file consist.cpp.

Function Documentation

◆ consistency()

void consistency ( )

Definition at line 46 of file consist.cpp.

◆ is_var_declared_as_function()

int is_var_declared_as_function ( Symbol s)

Check if variable declared in NEURON block is conflicting with a PROCEDURE or FUNCTION.

In order to avoid "declaring" variable in NEURON block and then defining PROCEDURE or FUNCTION with the same name, we check if the variable is function and has one of the NRN* type.

Definition at line 32 of file consist.cpp.

Variable Documentation

◆ indepsym

Symbol* indepsym
extern

Definition at line 8 of file declare.cpp.

◆ scop_indep

Symbol* scop_indep
extern

Definition at line 9 of file declare.cpp.

◆ vectorize

int vectorize
extern

Definition at line 78 of file nocpout.cpp.