summaryrefslogtreecommitdiff
path: root/src/include/MainOverloadables.h
Commit message (Collapse)AuthorAge
* Implement CCTK_Error and friendseschnett2013-02-26
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4963 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Define USE_ARGUMENTS macro which expands to something which use the argumentstradke2001-12-09
| | | | | | | | | of overloaded functions. This gets rid of nasty compiler warnings about unused function arguments for dummy overloadables. git-svn-id: http://svn.cactuscode.org/flesh/trunk@2488 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Making the overload macros more generic.goodale2000-11-21
| | | | | | | | | | | | | | | | | | | | | | | | | Can now do #define OVERLOADABLE_CALL MyThorn #define OVERLOADABLE_PREFIX MyThornFunc #define OVERLOADABLE_DUMMY_PREFIX MyThornDummyFunc to get it to generate functions/function pointers of the form MyThornOverloadFoo MyThornFuncFoo and MyThornDummyFuncFoo In the flesh these are CCTK_, CCTK_, and CCTKi_Dummy respectively. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1898 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Made CCTK_MainLoopIndex and CCTK_SetMainLoopIndex overloadable, and addedallen2000-10-04
| | | | | | | routines that were originally there as defaults git-svn-id: http://svn.cactuscode.org/flesh/trunk@1852 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added name to argument just in case we ever want to generate dummy functions.goodale1999-05-06
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@516 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Rationalised the overloading of functions. Goodbye RegisterKeyedFunction,goodale1999-02-04
hello Overloadable ! Now each subdirectory has one header file (in the include dir) which defines the overloadable functions. Macros are then applied to the header file to produce functions of the form CCTK_OverloadFoo(... (*func)(...)) to overload the function, and to create prototypes, dummy functions, and if statements which can be used to assign dummy (or other default) functions to any overloadable function which hasn't been assigned. The resulting functions have names of the form CCTK_Foo() As a byproduct of this the communication layer should work, 'though it's all dummy functions there at the moment, but at least you can call the functions. I've put OutputGH and OutputGroup in the IO layer, but can't remember precisely what we had decided as the canonical set of overloadable functions for IO. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@206 17b73243-c579-4c4c-a9d2-2d5706c11dac