aboutsummaryrefslogtreecommitdiff
path: root/src/jsifier.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/jsifier.js')
-rw-r--r--src/jsifier.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jsifier.js b/src/jsifier.js
index 3c758bff..ed42dae7 100644
--- a/src/jsifier.js
+++ b/src/jsifier.js
@@ -238,7 +238,7 @@ function JSify(data, functionsOnly, givenTypes, givenFunctions) {
} else {
item.JS = 'var ' + item.ident + ';';
var constant = item.external ?
- JSON.stringify(makeEmptyStruct(item.type)) + ' /* external value? */'
+ makePointer(JSON.stringify(makeEmptyStruct(item.type)) + ' /* external value? */', null, 'ALLOC_STATIC')
:
parseConst(item.value, item.type, item.ident);
if (typeof constant === 'object') {