Check for empty generic declaration list
This commit is contained in:
1 parent
f52a1e4ded
commit
e6a206a430
3 files changed
+15
-5
No files matched your search
@@ -1,3 +1,10 @@
|
||||
proc new_string(s: string) -> string {
|
||||
var c = make([]u8, len(s)+1);
|
||||
copy(c, []u8(s));
|
||||
c[len(s)] = 0;
|
||||
return string(c[0..<len(s)]);
|
||||
}
|
||||
|
||||
proc new_c_string(s: string) -> ^u8 {
|
||||
var c = make([]u8, len(s)+1);
|
||||
copy(c, []u8(s));
|
||||
|
||||
Reference in new issue
Block a user