diff options
author | Ben Longbons <b.r.longbons@gmail.com> | 2013-02-07 19:38:32 -0800 |
---|---|---|
committer | Ben Longbons <b.r.longbons@gmail.com> | 2013-02-07 22:41:23 -0800 |
commit | 83b2e0b3ceda907b7186acfcc56c214fc04d9c13 (patch) | |
tree | f4dcc8d8b59fd9a633bc2604cc92f0523cc76ee4 /src/common/grfio.hpp | |
parent | c67c2b7435a13d7ce17b2075e22dc5c6036f702a (diff) | |
download | tmwa-83b2e0b3ceda907b7186acfcc56c214fc04d9c13.tar.gz tmwa-83b2e0b3ceda907b7186acfcc56c214fc04d9c13.tar.bz2 tmwa-83b2e0b3ceda907b7186acfcc56c214fc04d9c13.tar.xz tmwa-83b2e0b3ceda907b7186acfcc56c214fc04d9c13.zip |
Remove some macros
Diffstat (limited to 'src/common/grfio.hpp')
-rw-r--r-- | src/common/grfio.hpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/common/grfio.hpp b/src/common/grfio.hpp index 58afb07..7707b2b 100644 --- a/src/common/grfio.hpp +++ b/src/common/grfio.hpp @@ -8,11 +8,17 @@ // Note that there currently is a 1-1 correlation between them, // but it is possible for a single .wlk to have multiple .gats reference it -/// Load file into memory -# define grfio_read(resourcename) grfio_reads(resourcename, NULL) /// Load file into memory and possibly record length // For some reason, this allocates an extra 1024 bytes at the end void *grfio_reads(const char *resourcename, size_t *size); + +/// Load file into memory +inline +void *grfio_read(const char *resourcename) +{ + return grfio_reads(resourcename, NULL); +} + /// Get size of file // This is only called once, and that is to check the existence of a file. size_t grfio_size(const char *resourcename) __attribute__((deprecated)); |