diff options
author | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
commit | e0c6872cf40896c7be36b11dcc744620f10adf1d (patch) | |
tree | 60335e10d2f4354b0674ec22d7b53f0f8abee672 /graphics/asymptote/primitives.h |
Initial commit
Diffstat (limited to 'graphics/asymptote/primitives.h')
-rw-r--r-- | graphics/asymptote/primitives.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/graphics/asymptote/primitives.h b/graphics/asymptote/primitives.h new file mode 100644 index 0000000000..cbf37601c7 --- /dev/null +++ b/graphics/asymptote/primitives.h @@ -0,0 +1,41 @@ +/***** + * primitives.h + * Andy Hammerlindl 2007/04/27 + * + * A list of the primative types in Asymptote, defined using the + * PRIMITIVE(name,Name,asyName) macro. This macro should be defined in by the + * code including this file for the context at hand. + * + * name - the name of the type in C++ code ex: boolean + * Name - the same name capitalized ex: Boolean + * asyName - the name in Asymptote code ex: bool + * + *****/ + +// No ifndef because this file may be included multiple times in different +// contexts. + +PRIMITIVE(void,Void,void) +PRIMITIVE(inferred,Inferred,var) +/* null is not a primitive type. */ +#ifdef PRIMERROR +PRIMITIVE(error,Error,<error>) +#endif + +PRIMITIVE(boolean,Boolean,bool) +PRIMITIVE(Int,Int,int) +PRIMITIVE(real,Real,real) +PRIMITIVE(string,String,string) +PRIMITIVE(pair,Pair,pair) +PRIMITIVE(triple,Triple,triple) +PRIMITIVE(transform,Transform,transform) +PRIMITIVE(guide,Guide,guide) +PRIMITIVE(path,Path,path) +PRIMITIVE(path3,Path3,path3) +PRIMITIVE(cycleToken,CycleToken,cycleToken) +PRIMITIVE(tensionSpecifier,TensionSpecifier,tensionSpecifier) +PRIMITIVE(curlSpecifier,CurlSpecifier,curlSpecifier) +PRIMITIVE(pen,Pen,pen) +PRIMITIVE(picture,Picture,frame) +PRIMITIVE(file,File,file) +PRIMITIVE(code,Code,code) |