From de715b5a0eed8e2e78460b30ba76ead3cb0041fd Mon Sep 17 00:00:00 2001 From: rdb Date: Tue, 4 Aug 2015 17:48:46 +0200 Subject: [PATCH] Fix inability for interrogate to parse /*c*//* and /*c*/// --- dtool/src/cppparser/cppPreprocessor.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dtool/src/cppparser/cppPreprocessor.cxx b/dtool/src/cppparser/cppPreprocessor.cxx index 52c758acd6..4f6384e89d 100644 --- a/dtool/src/cppparser/cppPreprocessor.cxx +++ b/dtool/src/cppparser/cppPreprocessor.cxx @@ -979,13 +979,14 @@ skip_whitespace(int c) { //////////////////////////////////////////////////////////////////// int CPPPreprocessor:: skip_comment(int c) { - if (c == '/') { + while (c == '/') { int next_c = get(); if (next_c == '*') { _last_cpp_comment = false; c = skip_c_comment(get()); } else if (next_c == '/') { c = skip_cpp_comment(get()); + break; } else { _last_cpp_comment = false; unget(next_c);