path.iscppfile - premake/premake-4.x GitHub Wiki
Home > [Scripting Reference](Scripting Reference) > path.iscppfile
path.iscppfile
The path.iscppfile function returns true if the specified path represents a C++ source code file, based on its file extension.
#!lua
path.iscppfile("path")
Parameters
path is the file system path to check.
Return Value
True if the path matches a well-known C++ file extension, false otherwise.