math_include.py
来自「ace开发环境 用来开发网络程序 其运用了设计模式、多平台、C++等多种知识」· Python 代码 · 共 20 行
PY
20 行
""" Checks that the C++ inline keyword is not used """import _typestype_list = _types.source_files + _types.header_files + _types.inline_filesfrom sys import stderrimport reregex = re.compile ("^\s*#\s*include\s*(\/\*\*\/){0,1}\s*\<math\.h\>")begin_exclude = re.compile ("FUZZ\: disable check_math_include")end_exclude = re.compile ("FUZZ\: enable check_math_include")error_message = ": error: contains an include to math.h\n"from _generic_handler import generic_handlerdef handler (file_name, file_content): return generic_handler (regex, begin_exclude, end_exclude, error_message, file_name, file_content)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?