00001 /* 00002 # This file is Copyright 2009 Dean Hall. 00003 # 00004 # This file is part of the Python-on-a-Chip program. 00005 # Python-on-a-Chip is free software: you can redistribute it and/or modify 00006 # it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1. 00007 # 00008 # Python-on-a-Chip is distributed in the hope that it will be useful, 00009 # but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00011 # A copy of the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1 00012 # is seen in the file COPYING up one directory from this. 00013 */ 00014 00015 00027 #ifndef FEATURES_H_ 00028 #define FEATURES_H_ 00029 00030 00032 #define PM_HEAP_SIZE 0x0D00 00033 00034 00041 #define HAVE_PRINT 00042 00043 00050 #define HAVE_GC 00051 00052 00053 /* #148 Create configurable float datatype */ 00058 /*#define HAVE_FLOAT*/ 00059 /*#define PM_FLOAT_BIG_ENDIAN*/ 00060 00066 #define HAVE_DEL 00067 00072 #define HAVE_IMPORTS 00073 00074 /* #157 Support default args */ 00079 #define HAVE_DEFAULTARGS 00080 00081 /* #160 Add support for string and tuple replication */ 00087 #define HAVE_REPLICATION 00088 00089 /* #202 Implement classes in the vm */ 00094 /*#define HAVE_CLASSES*/ 00095 00100 /*#define HAVE_ASSERT*/ 00101 #if defined(HAVE_ASSERT) && !defined(HAVE_CLASSES) 00102 #error HAVE_ASSERT requires HAVE_CLASSES 00103 #endif 00104 00105 /* #207 Add support for the yield keyword */ 00110 /*#define HAVE_GENERATORS*/ 00111 #if defined(HAVE_GENERATORS) && !defined(HAVE_CLASSES) 00112 #error HAVE_GENERATORS requires HAVE_CLASSES 00113 #endif 00114 00115 /* #244 Add support for the backtick operation (UNARY_CONVERT) */ 00121 #define HAVE_BACKTICK 00122 00123 /* #205 Add support for string format operation */ 00129 #define HAVE_STRING_FORMAT 00130 00131 /* #256 Add support for closures */ 00136 /*#define HAVE_CLOSURES*/ 00137 #if defined(HAVE_CLOSURES) && !defined(HAVE_DEFAULTARGS) 00138 #error HAVE_CLOSURES requires HAVE_DEFAULTARGS 00139 #endif 00140 00141 #endif /* FEATURES_H_ */