kiwi-schema
Advanced tools
Comparing version 0.0.8 to 0.0.9
@@ -868,2 +868,3 @@ var kiwi = exports || kiwi || {}, exports; | ||
cpp.push(' ' + type + ' *' + field.name + '() { return ' + name + '; }'); | ||
cpp.push(' const ' + type + ' *' + field.name + '() const { return ' + name + '; }'); | ||
cpp.push(' void set_' + field.name + '(' + type + ' *value) { ' + name + ' = value; }'); | ||
@@ -874,2 +875,3 @@ } | ||
cpp.push(' ' + type + ' *' + field.name + '() { return _flags[' + flagIndex + '] & ' + flagMask + ' ? &' + name + ' : nullptr; }'); | ||
cpp.push(' const ' + type + ' *' + field.name + '() const { return _flags[' + flagIndex + '] & ' + flagMask + ' ? &' + name + ' : nullptr; }'); | ||
cpp.push(' ' + type + ' &set_' + field.name + '(kiwi::MemoryPool &pool, uint32_t count) { _flags[' + flagIndex + | ||
@@ -881,2 +883,3 @@ '] |= ' + flagMask + '; return ' + name + ' = pool.array<' + cppType(definitions, field, false) + '>(count); }'); | ||
cpp.push(' ' + type + ' *' + field.name + '() { return _flags[' + flagIndex + '] & ' + flagMask + ' ? &' + name + ' : nullptr; }'); | ||
cpp.push(' const ' + type + ' *' + field.name + '() const { return _flags[' + flagIndex + '] & ' + flagMask + ' ? &' + name + ' : nullptr; }'); | ||
cpp.push(' void set_' + field.name + '(const ' + type + ' &value) { _flags[' + | ||
@@ -883,0 +886,0 @@ flagIndex + '] |= ' + flagMask + '; ' + name + ' = value; }'); |
{ | ||
"name": "kiwi-schema", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "kiwi.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
130888
2230