Changeset 3c8e12d in tol
- Timestamp:
- Feb 23, 2015, 9:33:51 AM (12 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- 35121b1
- Parents:
- 6efb506
- File:
-
- 1 edited
-
tol/btol/set_type/setgra.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
tol/btol/set_type/setgra.cpp
r6efb506 r3c8e12d 3048 3048 contens_.RobElement(result); 3049 3049 } 3050 3051 #if !defined(TOLPLAT_SYSTEM_NAME) 3052 #if defined(UNIX) 3053 #define TOLPLAT_SYSTEM_NAME "Linux" 3054 #else 3055 #define TOLPLAT_SYSTEM_NAME "Windows" 3056 #endif 3057 #endif 3058 3059 #if !defined(TOLPLAT_SYSTEM_VERSION) 3060 #define TOLPLAT_SYSTEM_VERSION "" 3061 #endif 3062 3063 #if !defined(TOLPLAT_SYSTEM_PROCESSOR) 3064 #define TOLPLAT_SYSTEM_PROCESSOR "x86_64" 3065 #endif 3066 3067 #if !defined(TOLPLAT_POINTER_SIZE) 3068 #define TOLPLAT_POINTER_SIZE sizeof(void*) 3069 #endif 3070 3071 #if !defined(TOLPLAT_COMPILER_ID) 3072 #if defined(UNIX) 3073 #define TOLPLAT_COMPILER_ID "GNU" 3074 #else 3075 #define TOLPLAT_COMPILER_ID "MSVC" 3076 #endif 3077 #endif 3078 3079 3080 3081 //-------------------------------------------------------------------- 3082 DeclareContensClass(BSet, BSetTemporary, BSetPlatformInfo); 3083 DefExtOpr(1, BSetPlatformInfo, "PlatformInfo", 1, 1, "Real", 3084 "(Real void)", 3085 I2("Returns the platform information for which this TOL was compiled", 3086 "Retorna la información de la plataforma para la cual fue compilado este TOL"), 3087 BOperClassify::System_); 3088 //-------------------------------------------------------------------- 3089 void BSetPlatformInfo::CalcContens() 3090 //-------------------------------------------------------------------- 3091 { 3092 BList * result = NIL; 3093 BSyntaxObject * so; 3094 result = Cons(so = new BContensText( "", TOLPLAT_SYSTEM_NAME), result ); 3095 so->PutName("SystemName"); 3096 result = Cons(so = new BContensText("", TOLPLAT_SYSTEM_VERSION), result ); 3097 so->PutName("SystemVersion"); 3098 result = Cons(so = new BContensText("", TOLPLAT_COMPILER_ID ), result); 3099 so->PutName("CompilerID"); 3100 result = Cons(so = new BContensText("", TOLPLAT_SYSTEM_PROCESSOR ), result); 3101 so->PutName("Processor"); 3102 result = Cons(so = new BContensDat("", TOLPLAT_POINTER_SIZE), result); 3103 so->PutName("PointerSize"); 3104 contens_.RobElement(result); 3105 }
Note: See TracChangeset
for help on using the changeset viewer.
