aboutsummaryrefslogtreecommitdiff
path: root/src/docs.cpp
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2017-07-06 22:43:55 +0100
committerGinger Bill <bill@gingerbill.org>2017-07-06 22:43:55 +0100
commit2db03cb4a54eaa594ca0d3ccb6819a8d56e7efed (patch)
tree255b286dc38003c2e7308250b73753922aec9034 /src/docs.cpp
parenteed873c6ec9ac1631fbf1285d4047596b353e9bf (diff)
Fix aprint* bug; NULL -> nullptr; Better error messages for overloaded functions
Diffstat (limited to 'src/docs.cpp')
-rw-r--r--src/docs.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/docs.cpp b/src/docs.cpp
index 21d2f0ed2..44c969181 100644
--- a/src/docs.cpp
+++ b/src/docs.cpp
@@ -10,7 +10,7 @@ String alloc_comment_group_string(gbAllocator a, CommentGroup g) {
len += 1; // for \n
}
if (len == 0) {
- return make_string(NULL, 0);
+ return make_string(nullptr, 0);
}
u8 *text = gb_alloc_array(a, u8, len+1);
@@ -70,7 +70,7 @@ void print_proc_decl(AstNodeProcDecl *pd) {
gbString params = expr_to_string(proc_type->params);
defer (gb_string_free(params));
gb_printf("proc %.*s(%s)", LIT(name), params);
- if (proc_type->results != NULL) {
+ if (proc_type->results != nullptr) {
ast_node(fl, FieldList, proc_type->results);
isize count = fl->list.count;
if (count > 0) {