diff src/instab.c @ 104:2ba8f9ef1417

Added ifdef/ifndef conditionals
author lost
date Sun, 25 Jan 2009 04:02:50 +0000
parents 6097cb1486f8
children
line wrap: on
line diff
--- a/src/instab.c	Fri Jan 23 05:48:55 2009 +0000
+++ b/src/instab.c	Sun Jan 25 04:02:50 2009 +0000
@@ -77,6 +77,8 @@
 extern OPFUNC(pseudo_starpragma);
 extern OPFUNC(pseudo_extern);
 extern OPFUNC(pseudo_export);
+extern OPFUNC(pseudo_ifdef);
+extern OPFUNC(pseudo_ifndef);
 
 instab_t instab[] =
 {
@@ -363,6 +365,8 @@
 	{ "ifle",	{ -1, -1, -1, -1}, 	pseudo_ifle, 1 },
 	{ "endc",	{ -1, -1, -1, -1}, 	pseudo_endc, 1 },
 	{ "else",	{ -1, -1, -1, -1}, 	pseudo_else, 1 },
+	{ "ifdef",	{ -1, -1, -1, -1},	pseudo_ifdef, 1},
+	{ "ifndef",	{ -1, -1, -1, -1},	pseudo_ifndef, 1},
 
 	{ "macro",	{ -1, -1, -1, -1}, 	pseudo_macro,	1,	0,	1 },
 	{ "endm",	{ -1, -1, -1, -1},	pseudo_endm,	1,	1,	1 },