diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2016-06-26 09:03:08 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2016-06-26 09:03:08 (GMT) |
commit | 0cb6ad07c60c0542efc9daa4f6652dc9bc584cc1 (patch) | |
tree | e38ad8004dbc01ee89130b6c0d44f9dc5e3d083e /generic/tcl.h | |
parent | bf46c5018da4ef7a89a2e4c35fa3e9f9080d4d27 (diff) | |
download | tcl-0cb6ad07c60c0542efc9daa4f6652dc9bc584cc1.zip tcl-0cb6ad07c60c0542efc9daa4f6652dc9bc584cc1.tar.gz tcl-0cb6ad07c60c0542efc9daa4f6652dc9bc584cc1.tar.bz2 |
Add TCL_NOINLINE macro, useful for micro-optimizations
Diffstat (limited to 'generic/tcl.h')
-rw-r--r-- | generic/tcl.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/generic/tcl.h b/generic/tcl.h index 3cd90a9..be40368 100644 --- a/generic/tcl.h +++ b/generic/tcl.h @@ -144,6 +144,7 @@ extern "C" { #if defined(__GNUC__) && (__GNUC__ > 2) # define TCL_FORMAT_PRINTF(a,b) __attribute__ ((__format__ (__printf__, a, b))) # define TCL_NORETURN __attribute__ ((noreturn)) +# define TCL_NOINLINE __attribute__ ((noinline)) # if defined(BUILD_tcl) || defined(BUILD_tk) # define TCL_NORETURN1 __attribute__ ((noreturn)) # else @@ -153,8 +154,10 @@ extern "C" { # define TCL_FORMAT_PRINTF(a,b) # if defined(_MSC_VER) && (_MSC_VER >= 1310) # define TCL_NORETURN _declspec(noreturn) +# define TCL_NOINLINE __declspec(noinline) # else # define TCL_NORETURN /* nothing */ +# define TCL_NOINLINE /* nothing */ # endif # define TCL_NORETURN1 /* nothing */ #endif |