mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
native: rename cgen to code_gen to avoid confusion with cgen
This commit is contained in:
parent
0370d4f268
commit
afeb1525a1
3 changed files with 8 additions and 9 deletions
|
@ -9,8 +9,7 @@ fn main() {
|
|||
library_file_path := os.join_path(os.getwd(), dl.get_libname('library'))
|
||||
handle := dl.open_opt(library_file_path, dl.rtld_lazy) ?
|
||||
eprintln('handle: ${ptr_str(handle)}')
|
||||
mut f := FNAdder(0)
|
||||
f = dl.sym_opt(handle, 'add_1') ?
|
||||
f := FNAdder(dl.sym_opt(handle, 'add_1') ?)
|
||||
eprintln('f: ${ptr_str(f)}')
|
||||
res := f(1, 2)
|
||||
eprintln('res: $res')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue