cvs: pear /CodeGen/CodeGen Element.php
| From: | Hartmut Holzgraefe | Date: | Sat, 19 Aug 2006 00:04:27 +0000 |
| Subject: | cvs: pear /CodeGen/CodeGen Element.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-41685@lists.php.net to get a copy of this message | ||
hholzgra Sat Aug 19 00:04:27 2006 UTC
Modified files:
/pear/CodeGen/CodeGen Element.php
Log:
added if=... attribute for conditional compilation
http://cvs.php.net/viewvc.cgi/pear/CodeGen/CodeGen/Element.php?r1=1.5&r2=1.6&diff_format=u
Index: pear/CodeGen/CodeGen/Element.php
diff -u pear/CodeGen/CodeGen/Element.php:1.5 pear/CodeGen/CodeGen/Element.php:1.6
--- pear/CodeGen/CodeGen/Element.php:1.5 Fri Feb 17 09:47:00 2006
+++ pear/CodeGen/CodeGen/Element.php Sat Aug 19 00:04:27 2006
@@ -15,7 +15,7 @@
* @author Hartmut Holzgraefe <hartmut@php.net>
* @copyright 2005 Hartmut Holzgraefe
* @license http://www.php.net/license/3_0.txt
PHP License 3.0
- * @version CVS: $Id: Element.php,v 1.5 2006/02/17 09:47:00 hholzgra Exp $
+ * @version CVS: $Id: Element.php,v 1.6 2006/08/19 00:04:27 hholzgra Exp $
* @link http://pear.php.net/package/CodeGen
*/
@@ -106,6 +106,25 @@
}
+
+ /**
+ * Conditional compile condition
+ *
+ * @var string
+ */
+ protected $ifCondition = "";
+
+ /**
+ * ifCondition setter
+ *
+ * @param string preprocessor #if condition
+ */
+ function setIfCondition($code)
+ {
+ $this->ifCondition = $code;
+ }
+
+
/**
* Checks whether a string is a reserved name
*