path.iscfile - premake/premake-4.x GitHub Wiki

Home > [Scripting Reference](Scripting Reference) > path.iscfile


path.iscfile

The path.iscfile function returns true if the specified path represents a C source code file, based on its file extension.

#!lua
path.iscfile("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.