mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-30 19:30:06 +00:00
Remove var and const keywords; Fix default parameter syntax
This commit is contained in:
+2
-2
@@ -323,7 +323,7 @@ default_allocator :: proc() -> Allocator {
|
||||
}
|
||||
|
||||
|
||||
assert :: proc(condition: bool, message = "", using location = #caller_location) -> bool #cc_contextless {
|
||||
assert :: proc(condition: bool, message := "", using location := #caller_location) -> bool #cc_contextless {
|
||||
if !condition {
|
||||
if len(message) > 0 {
|
||||
fmt.printf("%s(%d:%d) Runtime assertion: %s\n", fully_pathed_filename, line, column, message);
|
||||
@@ -335,7 +335,7 @@ assert :: proc(condition: bool, message = "", using location = #caller_location)
|
||||
return condition;
|
||||
}
|
||||
|
||||
panic :: proc(message = "", using location = #caller_location) #cc_contextless {
|
||||
panic :: proc(message := "", using location := #caller_location) #cc_contextless {
|
||||
if len(message) > 0 {
|
||||
fmt.printf("%s(%d:%d) Panic: %s\n", fully_pathed_filename, line, column, message);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user