mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-09 19:22:50 -06:00
better error handling which always reports the right file name
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
class PGF_INTERNAL_DECL PgfReader
|
||||
{
|
||||
public:
|
||||
PgfReader(std::istream *in);
|
||||
PgfReader(std::istream *in, const char *filepath);
|
||||
|
||||
uint8_t read_uint8();
|
||||
uint16_t read_u16be();
|
||||
@@ -74,6 +74,7 @@ public:
|
||||
|
||||
private:
|
||||
std::istream *in;
|
||||
const char* filepath;
|
||||
|
||||
object read_name_internal(size_t struct_size);
|
||||
object read_text_internal(size_t struct_size);
|
||||
|
||||
Reference in New Issue
Block a user