projects
/
ldk-java
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Support OSX (ie builds where int64_t is not an alias for jlong)
[ldk-java]
/
typescript_strings.py
diff --git
a/typescript_strings.py
b/typescript_strings.py
index d5d4499d91c7ad46228345a43b956578a3dbd925..b9eaf6abb3880e0896cbc12374040b0f393c33fe 100644
(file)
--- a/
typescript_strings.py
+++ b/
typescript_strings.py
@@
-450,7
+450,7
@@
const decodeString = (stringPointer, free = true) => {
return ""
def native_c_unitary_enum_map(self, struct_name, variants, enum_doc_comment):
return ""
def native_c_unitary_enum_map(self, struct_name, variants, enum_doc_comment):
- out_c = "static inline
" + struct_name + "
" + struct_name + "_from_js(int32_t ord) {\n"
+ out_c = "static inline
LDK" + struct_name + " LDK
" + struct_name + "_from_js(int32_t ord) {\n"
out_c = out_c + "\tswitch (ord) {\n"
ord_v = 0
out_c = out_c + "\tswitch (ord) {\n"
ord_v = 0
@@
-464,7
+464,7
@@
const decodeString = (stringPointer, free = true) => {
out_c = out_c + "\tabort();\n"
out_c = out_c + "}\n"
out_c = out_c + "\tabort();\n"
out_c = out_c + "}\n"
- out_c = out_c + "static inline int32_t
" + struct_name + "_to_js(
" + struct_name + " val) {\n"
+ out_c = out_c + "static inline int32_t
LDK" + struct_name + "_to_js(LDK
" + struct_name + " val) {\n"
out_c = out_c + "\tswitch (val) {\n"
ord_v = 0
for var in variants:
out_c = out_c + "\tswitch (val) {\n"
ord_v = 0
for var in variants: