mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
all: re-apply C++ support
This commit is contained in:
@ -6,10 +6,13 @@ module big
|
||||
#flag @VROOT/thirdparty/bignum/bn.o
|
||||
#include "bn.h"
|
||||
|
||||
pub struct Number {
|
||||
[typedef]
|
||||
struct C.bn {
|
||||
array [32]u32
|
||||
}
|
||||
|
||||
type Number = C.bn
|
||||
|
||||
fn C.bignum_init( n &Number )
|
||||
fn C.bignum_from_int( n &Number, i u64 )
|
||||
fn C.bignum_to_int( n &Number ) int
|
||||
|
Reference in New Issue
Block a user