Languages/CPlusPlus/Templates/CPlusPlus-Template-Include.ps.ps1
Template function Include.cpp { <# .SYNOPSIS C++ Include Template .DESCRIPTION Template for Include statements in C++ #> [Alias('Import.cpp','Require.cpp','Imports.cpp','Requires.cpp','Includes.cpp')] param( # The name of one or more libraries to import [vbn()] [Alias('ModuleName','PackageName')] [string[]] $LibraryName, # If the library is a system header, it will be included with `<>`. # This is also known as a `-StandardLibrary`, and is also aliased to `-Global`. [Alias('Global','StandardLibrary')] [switch] $IsSystemHeader ) process { foreach ($libName in $LibraryName) { "#include $(if ($IsSystemHeader) { '<'} else {'"'})$libName$(if ($IsSystemHeader) { '>'} else {'"'})" } } } |