Skip to content

Commit

Permalink
Updates rustg_file_exists() macro to remove user error (tgstation#158)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kapu1178 authored Dec 23, 2023
1 parent 75a6384 commit 50f36fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dmsrc/file.dm
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#define rustg_file_read(fname) RUSTG_CALL(RUST_G, "file_read")(fname)
#define rustg_file_exists(fname) RUSTG_CALL(RUST_G, "file_exists")(fname)
#define rustg_file_exists(fname) (RUSTG_CALL(RUST_G, "file_exists")(fname) == "true")
#define rustg_file_write(text, fname) RUSTG_CALL(RUST_G, "file_write")(text, fname)
#define rustg_file_append(text, fname) RUSTG_CALL(RUST_G, "file_append")(text, fname)
#define rustg_file_get_line_count(fname) text2num(RUSTG_CALL(RUST_G, "file_get_line_count")(fname))
Expand Down

0 comments on commit 50f36fa

Please sign in to comment.