Commit a414f8b1 authored by Alfons Laarman's avatar Alfons Laarman
Browse files

Fix compilation issue

parent c31f7539
...@@ -157,6 +157,10 @@ public class LTSminPrinter { ...@@ -157,6 +157,10 @@ public class LTSminPrinter {
private static void generateModel(StringWriter w, LTSminModel model, private static void generateModel(StringWriter w, LTSminModel model,
boolean no_gm) { boolean no_gm) {
if (no_gm) {
w.appendLine("#define SPINS_TEST_CODE").appendLine("");
}
generateHeader(w, model); generateHeader(w, model);
generateNativeTypes(w); generateNativeTypes(w);
generateTypeDef(w, model); generateTypeDef(w, model);
......
#ifndef SPINS_TEST_CODE
#ifndef fgetln #ifndef fgetln
#include <errno.h> #include <errno.h>
char * char *
...@@ -666,6 +668,8 @@ main(int argc, char **argv) ...@@ -666,6 +668,8 @@ main(int argc, char **argv)
spins_query(); spins_query();
} }
#endif
typedef struct spins_args_s { typedef struct spins_args_s {
void *model; void *model;
void (*callback)(void* arg, transition_info_t *transition_info, state_t *out, int *cpy); void (*callback)(void* arg, transition_info_t *transition_info, state_t *out, int *cpy);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment