mirror of
https://github.com/ETLCPP/etl.git
synced 2026-06-16 00:46:03 +08:00
20 lines
445 B
Markdown
20 lines
445 B
Markdown
---
|
|
title: "Header guards"
|
|
weight: 6
|
|
---
|
|
|
|
The ETL as a default uses `#include` headers guards.
|
|
If you wish, you can convert them to using `#pragma once`.
|
|
|
|
## Install guardonce
|
|
`python3 -m pip install guardonce`
|
|
|
|
## Modify all of the headers
|
|
Navigate to `etl/scripts`
|
|
|
|
To change from `#include` guard to `#pragma once`
|
|
`./convert_headers_to_use_once.bat`
|
|
|
|
To change from `#pragma` once to `#include guard`
|
|
`./convert_headers_to_use_guards.bat`
|