🎨 add namespace

This commit is contained in:
ValKmjolnir
2023-09-08 18:17:07 +08:00
parent cd4e0c1716
commit c157d8a9b1
27 changed files with 363 additions and 223 deletions
+5 -2
View File
@@ -3,7 +3,8 @@
#include <iostream>
#include "../src/nasal.h"
namespace nasal_fib_module {
namespace nasal {
namespace fib_module {
double fibonaci(double x) {
if (x<=2) {
@@ -88,5 +89,7 @@ module_func_info func_tbl[] = {
}
extern "C" module_func_info* get() {
return nasal_fib_module::func_tbl;
return fib_module::func_tbl;
}
}