Skip to content

Commit ccbb310

Browse files
committed
Simplify use of EMBIND_STD_STRING_IS_UTF8. NFC
1 parent 74b3512 commit ccbb310

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/lib/libembind.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -429,12 +429,7 @@ var LibraryEmbind = {
429429
'$stringToUTF8', '$lengthBytesUTF8', 'malloc', 'free'],
430430
_embind_register_std_string: (rawType, name) => {
431431
name = AsciiToString(name);
432-
var stdStringIsUTF8
433-
#if EMBIND_STD_STRING_IS_UTF8
434-
= true;
435-
#else
436-
= false;
437-
#endif
432+
var stdStringIsUTF8 = {{{ EMBIND_STD_STRING_IS_UTF8 }}};
438433

439434
registerType(rawType, {
440435
name,

0 commit comments

Comments
 (0)