#include "Meta-C.mch"		/* generic definitions for that */

/**
  Included tests:
  - SELF_INCLUSION_TEST
**/
/* #define TEST SELF_INCLUSION_TEST */

/* #define HOP hop */
#ifidn HOP,hop
  hop !
#endif

#undef RESULT


/*************** INCREMENT ***************/
#if defined (META_INC)
#  if   NUM == 0
#    define RESULT 1
#  elif NUM == 1
#    define RESULT 2
#  elif NUM == 2
#    define RESULT 3
#  elif NUM == 3
#    define RESULT 4
#  endif
/*************** SELF_INCLUSION_TEST *************/

#elif defined (SELF_INCLUSION_TEST)

#  define FirstTime
#  define NUM 10

#  ifdef FirstTime
#  undef FirstTime
	#include <stdio.h>
	void main (void) {
          int x ;
#  endif

#  if NUM == 0
	  printf ("Result: %d\n",x) ;
	}
#  else
	  x++ ;
#    define
#    undef NUM
#    define 
#    define NUM (NUM-1)
#    include "TestMeta.c"
#  endif

/********************* NEXT TEST ********************/
#elif defined(TEST,ZAPZAP)

#endif /* EOF TestMeta.c */
