Skip to content

Commit 6498c52

Browse files
committed
Merge remote-tracking branch 'origin/develop'
2 parents 9b505ea + 43b4e33 commit 6498c52

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

bindings/c/lib.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,15 +75,15 @@ bool hook_BYTES_mutableBytesEnabled();
7575
extern "C" {
7676

7777
/*
78-
* These symbols may not have been compiled into the library (if
79-
* `--embed-kprint` was not passed), and so we need to give them a weak default
78+
* These symbols may not have been compiled into the library (if `--embed FILE`
79+
* was not passed appropriately), and so we need to give them a weak default
8080
* definition. If the embed flag was passed, the value of these symbols will be
8181
* given by the embedded data.
8282
*/
8383
int kore_definition_syntax_len __attribute__((weak)) = -1;
84-
char kore_definition_syntax __attribute__((weak)) = -1;
84+
char kore_definition_syntax __attribute__((weak)) = 0;
8585
int kore_definition_macros_len __attribute__((weak)) = -1;
86-
char kore_definition_macros __attribute__((weak)) = -1;
86+
char kore_definition_macros __attribute__((weak)) = 0;
8787

8888
/* Completed types */
8989

@@ -475,8 +475,8 @@ kore_pattern *kore_pattern_new_token_internal(
475475
}
476476

477477
std::optional<pretty_print_definition> get_print_data() {
478-
if (kore_definition_macros_len == -1 || kore_definition_macros == -1
479-
|| kore_definition_syntax_len == -1 || kore_definition_syntax == -1) {
478+
if (kore_definition_macros_len == -1 || kore_definition_macros == 0
479+
|| kore_definition_syntax_len == -1 || kore_definition_syntax == 0) {
480480
return std::nullopt;
481481
}
482482

0 commit comments

Comments
 (0)