GNU Octave  3.8.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Macros
lo-macros.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define OCT_CONCAT2(ARG1, ARG2)   ARG1 ## ARG2
#define OCT_CONCAT2_REVERSE(ARG1, ARG2)   ARG2 ## ARG1
#define OCT_IF(NUM, X)   OCT_IF_PARAM(NUM, OCT_IF_HELPER, X)
#define OCT_IF_HELPER(X)   X
#define OCT_IF_PARAM(NUM, MACRO, PARAM)   OCT_IF_PARAM##NUM(MACRO, PARAM)
#define OCT_IF_PARAM0(MACRO, PARAM)
#define OCT_IF_PARAM1(MACRO, PARAM)   MACRO(PARAM)
#define OCT_IF_PARAM2(MACRO, PARAM)   MACRO(PARAM)
#define OCT_IF_PARAM3(MACRO, PARAM)   MACRO(PARAM)
#define OCT_IF_PARAM4(MACRO, PARAM)   MACRO(PARAM)
#define OCT_IF_PARAM5(MACRO, PARAM)   MACRO(PARAM)
#define OCT_IF_PARAM6(MACRO, PARAM)   MACRO(PARAM)
#define OCT_IF_PARAM7(MACRO, PARAM)   MACRO(PARAM)
#define OCT_IF_PARAM8(MACRO, PARAM)   MACRO(PARAM)
#define OCT_IF_PARAM9(MACRO, PARAM)   MACRO(PARAM)
#define OCT_ITERATE_MACRO(MACRO, NUM)   OCT_ITERATE_PARAM_MACRO(OCT_ITERATE_MACRO_HELPER, MACRO, NUM)
#define OCT_ITERATE_MACRO_HELPER(NUM, MACRO)   MACRO(NUM)
#define OCT_ITERATE_PARAM_MACRO(MACRO, PARAM, NUM)   OCT_ITERATE_PARAM_MACRO##NUM(MACRO,PARAM)
#define OCT_ITERATE_PARAM_MACRO0(MACRO, PARAM)
#define OCT_ITERATE_PARAM_MACRO1(MACRO, PARAM)   MACRO(0, PARAM)
#define OCT_ITERATE_PARAM_MACRO10(MACRO, PARAM)   OCT_ITERATE_PARAM_MACRO8(MACRO, PARAM) MACRO(8, PARAM) MACRO(9, PARAM)
#define OCT_ITERATE_PARAM_MACRO2(MACRO, PARAM)   MACRO(0, PARAM) MACRO(1, PARAM)
#define OCT_ITERATE_PARAM_MACRO3(MACRO, PARAM)   MACRO(0, PARAM) MACRO(1, PARAM) MACRO(2, PARAM)
#define OCT_ITERATE_PARAM_MACRO4(MACRO, PARAM)   MACRO(0, PARAM) MACRO(1, PARAM) MACRO(2, PARAM) MACRO(3, PARAM)
#define OCT_ITERATE_PARAM_MACRO5(MACRO, PARAM)   MACRO(0, PARAM) MACRO(1, PARAM) MACRO(2, PARAM) MACRO(3, PARAM) MACRO(4, PARAM)
#define OCT_ITERATE_PARAM_MACRO6(MACRO, PARAM)   OCT_ITERATE_PARAM_MACRO5(MACRO, PARAM) MACRO(5, PARAM)
#define OCT_ITERATE_PARAM_MACRO7(MACRO, PARAM)   OCT_ITERATE_PARAM_MACRO5(MACRO, PARAM) MACRO(5, PARAM) MACRO(6, PARAM)
#define OCT_ITERATE_PARAM_MACRO8(MACRO, PARAM)   OCT_ITERATE_PARAM_MACRO5(MACRO, PARAM) MACRO(5, PARAM) MACRO(6, PARAM) MACRO(7, PARAM)
#define OCT_ITERATE_PARAM_MACRO9(MACRO, PARAM)   OCT_ITERATE_PARAM_MACRO8(MACRO, PARAM) MACRO(8, PARAM)
#define OCT_MAKE_ARG_LIST(PREFIX, NUM)   OCT_ITERATE_PARAM_MACRO(OCT_MAKE_DECL_LIST_HELPER, PREFIX, NUM)
#define OCT_MAKE_DECL_LIST(TYPE, PREFIX, NUM)   OCT_ITERATE_PARAM_MACRO(OCT_MAKE_DECL_LIST_HELPER, TYPE PREFIX, NUM)
#define OCT_MAKE_DECL_LIST_HELPER(NUM, PREFIX)   OCT_IF_PARAM(NUM,OCT_MAKE_LIST_HELPER1,) OCT_CONCAT2(PREFIX, NUM)
#define OCT_MAKE_LIST(MACRO, NUM)   OCT_ITERATE_PARAM_MACRO(OCT_MAKE_LIST_HELPER, MACRO, NUM)
#define OCT_MAKE_LIST_HELPER(NUM, MACRO)   OCT_IF_PARAM(NUM,OCT_MAKE_LIST_HELPER1,) MACRO(NUM)
#define OCT_MAKE_LIST_HELPER1(ARG)   ARG,

Macro Definition Documentation

#define OCT_CONCAT2 (   ARG1,
  ARG2 
)    ARG1 ## ARG2

Definition at line 68 of file lo-macros.h.

#define OCT_CONCAT2_REVERSE (   ARG1,
  ARG2 
)    ARG2 ## ARG1

Definition at line 69 of file lo-macros.h.

#define OCT_IF (   NUM,
 
)    OCT_IF_PARAM(NUM, OCT_IF_HELPER, X)

Definition at line 74 of file lo-macros.h.

#define OCT_IF_HELPER (   X)    X

Definition at line 71 of file lo-macros.h.

#define OCT_IF_PARAM (   NUM,
  MACRO,
  PARAM 
)    OCT_IF_PARAM##NUM(MACRO, PARAM)

Definition at line 65 of file lo-macros.h.

#define OCT_IF_PARAM0 (   MACRO,
  PARAM 
)

Definition at line 53 of file lo-macros.h.

#define OCT_IF_PARAM1 (   MACRO,
  PARAM 
)    MACRO(PARAM)

Definition at line 54 of file lo-macros.h.

#define OCT_IF_PARAM2 (   MACRO,
  PARAM 
)    MACRO(PARAM)

Definition at line 55 of file lo-macros.h.

#define OCT_IF_PARAM3 (   MACRO,
  PARAM 
)    MACRO(PARAM)

Definition at line 56 of file lo-macros.h.

#define OCT_IF_PARAM4 (   MACRO,
  PARAM 
)    MACRO(PARAM)

Definition at line 57 of file lo-macros.h.

#define OCT_IF_PARAM5 (   MACRO,
  PARAM 
)    MACRO(PARAM)

Definition at line 58 of file lo-macros.h.

#define OCT_IF_PARAM6 (   MACRO,
  PARAM 
)    MACRO(PARAM)

Definition at line 59 of file lo-macros.h.

#define OCT_IF_PARAM7 (   MACRO,
  PARAM 
)    MACRO(PARAM)

Definition at line 60 of file lo-macros.h.

#define OCT_IF_PARAM8 (   MACRO,
  PARAM 
)    MACRO(PARAM)

Definition at line 61 of file lo-macros.h.

#define OCT_IF_PARAM9 (   MACRO,
  PARAM 
)    MACRO(PARAM)

Definition at line 62 of file lo-macros.h.

#define OCT_ITERATE_MACRO (   MACRO,
  NUM 
)    OCT_ITERATE_PARAM_MACRO(OCT_ITERATE_MACRO_HELPER, MACRO, NUM)

Definition at line 79 of file lo-macros.h.

#define OCT_ITERATE_MACRO_HELPER (   NUM,
  MACRO 
)    MACRO(NUM)

Definition at line 76 of file lo-macros.h.

#define OCT_ITERATE_PARAM_MACRO (   MACRO,
  PARAM,
  NUM 
)    OCT_ITERATE_PARAM_MACRO##NUM(MACRO,PARAM)

Definition at line 51 of file lo-macros.h.

#define OCT_ITERATE_PARAM_MACRO0 (   MACRO,
  PARAM 
)

Definition at line 28 of file lo-macros.h.

#define OCT_ITERATE_PARAM_MACRO1 (   MACRO,
  PARAM 
)    MACRO(0, PARAM)

Definition at line 29 of file lo-macros.h.

#define OCT_ITERATE_PARAM_MACRO10 (   MACRO,
  PARAM 
)    OCT_ITERATE_PARAM_MACRO8(MACRO, PARAM) MACRO(8, PARAM) MACRO(9, PARAM)

Definition at line 47 of file lo-macros.h.

#define OCT_ITERATE_PARAM_MACRO2 (   MACRO,
  PARAM 
)    MACRO(0, PARAM) MACRO(1, PARAM)

Definition at line 31 of file lo-macros.h.

#define OCT_ITERATE_PARAM_MACRO3 (   MACRO,
  PARAM 
)    MACRO(0, PARAM) MACRO(1, PARAM) MACRO(2, PARAM)

Definition at line 33 of file lo-macros.h.

#define OCT_ITERATE_PARAM_MACRO4 (   MACRO,
  PARAM 
)    MACRO(0, PARAM) MACRO(1, PARAM) MACRO(2, PARAM) MACRO(3, PARAM)

Definition at line 35 of file lo-macros.h.

#define OCT_ITERATE_PARAM_MACRO5 (   MACRO,
  PARAM 
)    MACRO(0, PARAM) MACRO(1, PARAM) MACRO(2, PARAM) MACRO(3, PARAM) MACRO(4, PARAM)

Definition at line 37 of file lo-macros.h.

#define OCT_ITERATE_PARAM_MACRO6 (   MACRO,
  PARAM 
)    OCT_ITERATE_PARAM_MACRO5(MACRO, PARAM) MACRO(5, PARAM)

Definition at line 39 of file lo-macros.h.

#define OCT_ITERATE_PARAM_MACRO7 (   MACRO,
  PARAM 
)    OCT_ITERATE_PARAM_MACRO5(MACRO, PARAM) MACRO(5, PARAM) MACRO(6, PARAM)

Definition at line 41 of file lo-macros.h.

#define OCT_ITERATE_PARAM_MACRO8 (   MACRO,
  PARAM 
)    OCT_ITERATE_PARAM_MACRO5(MACRO, PARAM) MACRO(5, PARAM) MACRO(6, PARAM) MACRO(7, PARAM)

Definition at line 43 of file lo-macros.h.

#define OCT_ITERATE_PARAM_MACRO9 (   MACRO,
  PARAM 
)    OCT_ITERATE_PARAM_MACRO8(MACRO, PARAM) MACRO(8, PARAM)

Definition at line 45 of file lo-macros.h.

#define OCT_MAKE_ARG_LIST (   PREFIX,
  NUM 
)    OCT_ITERATE_PARAM_MACRO(OCT_MAKE_DECL_LIST_HELPER, PREFIX, NUM)

Definition at line 96 of file lo-macros.h.

#define OCT_MAKE_DECL_LIST (   TYPE,
  PREFIX,
  NUM 
)    OCT_ITERATE_PARAM_MACRO(OCT_MAKE_DECL_LIST_HELPER, TYPE PREFIX, NUM)

Definition at line 92 of file lo-macros.h.

#define OCT_MAKE_DECL_LIST_HELPER (   NUM,
  PREFIX 
)    OCT_IF_PARAM(NUM,OCT_MAKE_LIST_HELPER1,) OCT_CONCAT2(PREFIX, NUM)

Definition at line 88 of file lo-macros.h.

#define OCT_MAKE_LIST (   MACRO,
  NUM 
)    OCT_ITERATE_PARAM_MACRO(OCT_MAKE_LIST_HELPER, MACRO, NUM)

Definition at line 86 of file lo-macros.h.

#define OCT_MAKE_LIST_HELPER (   NUM,
  MACRO 
)    OCT_IF_PARAM(NUM,OCT_MAKE_LIST_HELPER1,) MACRO(NUM)

Definition at line 84 of file lo-macros.h.

#define OCT_MAKE_LIST_HELPER1 (   ARG)    ARG,

Definition at line 81 of file lo-macros.h.