Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9958159

Browse files
ubaidskcertik
andauthored
WASM: Add rt_funcs_last to enum RT_FUNCS
Co-authored-by: Ondřej Čertík <[email protected]>
1 parent 99b46c3 commit 9958159

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/libasr/codegen/asr_to_wasm.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,9 @@ enum RT_FUNCS {
7272
mul_c64 = 7,
7373
abs_c32 = 9,
7474
abs_c64 = 10,
75+
rt_funcs_last = 11, // keep this as the last enumerator
7576
};
76-
const int NO_OF_RT_FUNCS = 11;
77+
const int NO_OF_RT_FUNCS = rt_funcs_last;
7778

7879
class ASRToWASMVisitor : public ASR::BaseVisitor<ASRToWASMVisitor> {
7980
public:

0 commit comments

Comments
 (0)