forked from qt-creator/qt-creator
Obviously, boolean functions return a string that you need to compare to
"true" and "false" explicitly.
Amends 8e75381fce.
Fixes: QTCREATORBUG-29713
Change-Id: I19966555badd67f95f51ea1c1757d8b86e727010
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
10 lines
241 B
C
10 lines
241 B
C
%{JS: Cpp.licenseTemplate()}\
|
|
@if '%{JS: Cpp.usePragmaOnce()}' === 'true'
|
|
#pragma once
|
|
@else
|
|
#ifndef %{JS: Cpp.headerGuard('%{FileName}')}
|
|
#define %{JS: Cpp.headerGuard('%{FileName}')}
|
|
|
|
#endif // %{JS: Cpp.headerGuard('%{FileName}')}
|
|
@endif
|