mirror of
https://github.com/yhirose/cpp-peglib.git
synced 2024-11-13 22:55:29 +00:00
Fixed duplicated symbol error.
This commit is contained in:
parent
e8a016267f
commit
26060c0f00
6
peglib.h
6
peglib.h
@ -23,7 +23,7 @@
|
||||
|
||||
namespace peglib {
|
||||
|
||||
void* enabler;
|
||||
extern void* enabler;
|
||||
|
||||
/*-----------------------------------------------------------------------------
|
||||
* any
|
||||
@ -426,11 +426,11 @@ typedef std::function<void (const char* s, size_t n, size_t id, const std::strin
|
||||
/*
|
||||
* Result
|
||||
*/
|
||||
bool success(int len) {
|
||||
inline bool success(int len) {
|
||||
return len != -1;
|
||||
}
|
||||
|
||||
bool fail(int len) {
|
||||
inline bool fail(int len) {
|
||||
return len == -1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user