example/1227 exposes the sx fn `sx_triple` to C under the symbol `triple_c` via `export "triple_c"`; the companion C calls `triple_c` by that name. RED: the define path emits the fn under its sx name (`sx_triple`) and ignores the parsed `extern_name`, so the C reference to `triple_c` is undefined at AOT link. The next commit consumes the rename on the define path (gap iii) and greens it.
8 lines
151 B
C
8 lines
151 B
C
#ifndef SX_EXPORT_FN_RENAME_H
|
|
#define SX_EXPORT_FN_RENAME_H
|
|
|
|
// Calls back into the sx-exported `triple_c` and adds 1.
|
|
int call_triple(int n);
|
|
|
|
#endif
|