mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
Fix inability for interrogate to parse /*c*//* and /*c*///
This commit is contained in:
parent
51e243deb5
commit
de715b5a0e
@ -979,13 +979,14 @@ skip_whitespace(int c) {
|
|||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
int CPPPreprocessor::
|
int CPPPreprocessor::
|
||||||
skip_comment(int c) {
|
skip_comment(int c) {
|
||||||
if (c == '/') {
|
while (c == '/') {
|
||||||
int next_c = get();
|
int next_c = get();
|
||||||
if (next_c == '*') {
|
if (next_c == '*') {
|
||||||
_last_cpp_comment = false;
|
_last_cpp_comment = false;
|
||||||
c = skip_c_comment(get());
|
c = skip_c_comment(get());
|
||||||
} else if (next_c == '/') {
|
} else if (next_c == '/') {
|
||||||
c = skip_cpp_comment(get());
|
c = skip_cpp_comment(get());
|
||||||
|
break;
|
||||||
} else {
|
} else {
|
||||||
_last_cpp_comment = false;
|
_last_cpp_comment = false;
|
||||||
unget(next_c);
|
unget(next_c);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user