swig/Examples/scilab/enum/example.c
2013-09-06 15:42:31 +02:00

16 lines
309 B
C

/* File : example.c */
#include "example.h"
#include <stdio.h>
void enum_test(color c) {
if (c == RED) {
printf("color = RED\n");
} else if (c == BLUE) {
printf("color = BLUE\n");
} else if (c == GREEN) {
printf("color = GREEN\n");
} else {
printf("color = Unknown color!\n");
}
}