Fix error printing for basic directives
This commit is contained in:
1 parent
6d9fadf351
commit
0c22081e5f
6 files changed
+37
-21
No files matched your search
@@ -39,6 +39,7 @@ Type_Info_Record :: struct #ordered {
|
||||
Type_Info :: union {
|
||||
size: int,
|
||||
align: int,
|
||||
|
||||
Named{name: string, base: ^Type_Info},
|
||||
Integer{signed: bool},
|
||||
Float{},
|
||||
|
||||
@@ -210,6 +210,10 @@ read_entire_file :: proc(name: string) -> ([]byte, bool) {
|
||||
return nil, false;
|
||||
}
|
||||
|
||||
if length == 0 {
|
||||
return nil, true;
|
||||
}
|
||||
|
||||
data := make([]byte, length);
|
||||
if data == nil {
|
||||
return nil, false;
|
||||
|
||||
Reference in new issue
Block a user