mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-03 14:18:47 +00:00
deprecated attribute for procedure declarations
This commit is contained in:
+1
-1
@@ -15,8 +15,8 @@ new_cstring :: proc(s: string) -> cstring {
|
||||
return cstring(&c[0]);
|
||||
}
|
||||
|
||||
@(deprecated="Please use a standard cast for cstring to string")
|
||||
to_odin_string :: proc(str: cstring) -> string {
|
||||
if str == nil do return "";
|
||||
return string(str);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user