mirror of
https://github.com/yhirose/cpp-peglib.git
synced 2025-01-22 21:35: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 {
|
namespace peglib {
|
||||||
|
|
||||||
void* enabler;
|
extern void* enabler;
|
||||||
|
|
||||||
/*-----------------------------------------------------------------------------
|
/*-----------------------------------------------------------------------------
|
||||||
* any
|
* any
|
||||||
@ -426,11 +426,11 @@ typedef std::function<void (const char* s, size_t n, size_t id, const std::strin
|
|||||||
/*
|
/*
|
||||||
* Result
|
* Result
|
||||||
*/
|
*/
|
||||||
bool success(int len) {
|
inline bool success(int len) {
|
||||||
return len != -1;
|
return len != -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool fail(int len) {
|
inline bool fail(int len) {
|
||||||
return len == -1;
|
return len == -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user