mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 14:54:47 +00:00
TODO: Actually implement the functions
This commit is contained in:
parent
9dad304e95
commit
22e781259d
10 changed files with 84 additions and 10 deletions
|
@ -23,8 +23,8 @@ pub fn asin(num: f64) callconv(.C) f64 {
|
|||
return @call(.{ .modifier = always_inline }, math.asin, .{num});
|
||||
}
|
||||
|
||||
/// TODO: Obviously, this should not be an alias for x + 1.
|
||||
/// fix me!
|
||||
/// TODO: Obviously, this function should do something more interesting
|
||||
/// than return the number 40. Fix me!
|
||||
pub fn bytesToU16C(arg: RocList, position: usize) callconv(.C) u16 {
|
||||
return @call(.{ .modifier = always_inline }, bytesToU16, .{arg, position});
|
||||
}
|
||||
|
@ -33,3 +33,14 @@ fn bytesToU16(arg: RocList, position: usize) u16 {
|
|||
const exampleAnswer: u16 = 40;
|
||||
return 40;
|
||||
}
|
||||
|
||||
/// TODO: Obviously, this function should do something more interesting
|
||||
/// than return the number 40. Fix me!
|
||||
pub fn bytesToU32C(arg: RocList, position: usize) callconv(.C) u32 {
|
||||
return @call(.{ .modifier = always_inline }, bytesToU32, .{arg, position});
|
||||
}
|
||||
|
||||
fn bytesToU32(arg: RocList, position: usize) u32 {
|
||||
const exampleAnswer: u32 = 41;
|
||||
return 41;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue