kiwi-schema
Advanced tools
Comparing version 0.0.17 to 0.0.18
12
kiwi.js
@@ -867,2 +867,7 @@ var kiwi = exports || kiwi || {}, exports; | ||
if (pass === 2) { | ||
cpp.push('#ifdef IMPLEMENT_SCHEMA_H'); | ||
cpp.push(''); | ||
} | ||
for (var i = 0; i < schema.definitions.length; i++) { | ||
@@ -1212,3 +1217,8 @@ var definition = schema.definitions[i]; | ||
if (newline) cpp.push(''); | ||
if (pass === 2) { | ||
cpp.push('#endif'); | ||
cpp.push(''); | ||
} | ||
else if (newline) cpp.push(''); | ||
} | ||
@@ -1215,0 +1225,0 @@ |
{ | ||
"name": "kiwi-schema", | ||
"version": "0.0.17", | ||
"version": "0.0.18", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "kiwi.js", |
@@ -88,2 +88,5 @@ # Kiwi Message Format | ||
```cpp | ||
#define IMPLEMENT_KIWI_H | ||
#define IMPLEMENT_SCHEMA_H | ||
#include <stdio.h> | ||
@@ -90,0 +93,0 @@ #include "test.h" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
219205
2634
136