[4838] | 1 | /*! |
---|
[9748] | 2 | * @file executor_static.h |
---|
| 3 | * Definition of an Executor to Static Functions (either Static-Class or C-Style) |
---|
[5391] | 4 | */ |
---|
[7716] | 5 | /* |
---|
| 6 | orxonox - the future of 3D-vertical-scrollers |
---|
[1853] | 7 | |
---|
[7716] | 8 | Copyright (C) 2004 orx |
---|
[1853] | 9 | |
---|
[7716] | 10 | This program is free software; you can redistribute it and/or modify |
---|
| 11 | it under the terms of the GNU General Public License as published by |
---|
| 12 | the Free Software Foundation; either version 2, or (at your option) |
---|
| 13 | any later version. |
---|
[5141] | 14 | |
---|
[7716] | 15 | ### File Specific: |
---|
| 16 | main-programmer: Benjamin Grauer |
---|
| 17 | co-programmer: ... |
---|
| 18 | */ |
---|
[5652] | 19 | |
---|
[5328] | 20 | |
---|
[9739] | 21 | #ifndef __EXECUTOR_STATIC_H_ |
---|
| 22 | #define __EXECUTOR_STATIC_H_ |
---|
[5641] | 23 | |
---|
[9737] | 24 | /// Define all Constructs, that define an Executor. |
---|
[5641] | 25 | |
---|
[9737] | 26 | //! The Name to be attached to the functional (for normal, static, and const modes) |
---|
[9745] | 27 | #define __EXECUTOR_FUNCTIONAL_NAME(ParamCount, Ext) Executor##ParamCount##Ext##_static |
---|
[5161] | 28 | |
---|
[7724] | 29 | //! if Functional is constant calling |
---|
[7716] | 30 | #define __EXECUTOR_FUNCTIONAL_CONST |
---|
[7724] | 31 | //! The Execution-mode (either static or objective) |
---|
[9738] | 32 | #define __EXECUTOR_FUNCTIONAL_FUNCTION_EXEC functionPointer |
---|
[7724] | 33 | //! The Function-Pointer, and how to save it internally. |
---|
[9738] | 34 | #define __EXECUTOR_FUNCTIONAL_FUNCTION_POINTER *functionPointer |
---|
[9737] | 35 | //! The Type of Function |
---|
[9738] | 36 | #define __EXECUTOR_FUNCTIONAL_FUNCTIONTYPE Executor<CallType, BaseClass>::FunctionStatic |
---|
[5161] | 37 | |
---|
| 38 | |
---|
[9737] | 39 | /// We want to include __EXECUTOR_GENERIC_H again, with current settings. |
---|
| 40 | #include "executor_generic.h" |
---|
[5135] | 41 | |
---|
[9737] | 42 | #undef __EXECUTOR_FUNCTIONAL_NAME |
---|
[9728] | 43 | |
---|
[7716] | 44 | #undef __EXECUTOR_FUNCTIONAL_CONST |
---|
| 45 | #undef __EXECUTOR_FUNCTIONAL_FUNCTION_EXEC |
---|
| 46 | #undef __EXECUTOR_FUNCTIONAL_FUNCTION_POINTER |
---|
[9735] | 47 | #undef __EXECUTOR_FUNCTIONAL_FUNCTIONTYPE |
---|
[7725] | 48 | |
---|
[9739] | 49 | #endif /* __EXECUTOR_STATIC_H_ */ |
---|