mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
compiler: first step to require explicit definition of imported C fns
This commit is contained in:
@@ -4,8 +4,6 @@
|
||||
|
||||
module math
|
||||
|
||||
#include <math.h>
|
||||
|
||||
// NOTE
|
||||
// When adding a new function, please make sure it's in the right place.
|
||||
// All functions are sorted alphabetically.
|
||||
@@ -51,6 +49,8 @@ pub fn abs(a f64) f64 {
|
||||
return a
|
||||
}
|
||||
|
||||
fn C.acos(a f64) f64
|
||||
|
||||
// acos calculates inverse cosine (arccosine).
|
||||
pub fn acos(a f64) f64 {
|
||||
return C.acos(a)
|
||||
|
Reference in New Issue
Block a user