#unassert Directive

This page was translated by a robot.

The use of the #unassertdirective is NOT ADVISED for the general programmer. The directive is used to invalidate #unassertpredicates that were specified using the #assertdirective .

Details

The #unassertdirective sets predicates to undefined. The query using the #ifdirective will result from the used line of code false.






This is funny!







NOT!
#include <stdio.h>
#assert funny(oh yes it is!)

int main(){
  #if #funny
    printf("This is funny!\n");
  #else
    printf("This is not funny.\n");
  #endif
  #unassert funny
  #if #funny
    printf("Still funny!\n");
  #else
    printf("NOT!\n");
  #endif
  return 0;
}