Fix error printing for basic directives

This commit is contained in:
Ginger Bill
2017-04-17 19:58:43 +01:00
parent 6d9fadf351
commit 0c22081e5f
6 changed files with 37 additions and 21 deletions
+1
View File
@@ -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{},
+4
View File
@@ -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;