Skip to content

Instantly share code, notes, and snippets.

@aichingm
Created April 6, 2025 11:32
Show Gist options
  • Select an option

  • Save aichingm/f254c73036c9edf9f981203c739063e5 to your computer and use it in GitHub Desktop.

Select an option

Save aichingm/f254c73036c9edf9f981203c739063e5 to your computer and use it in GitHub Desktop.
Header Only C Library Template
/*
# License APGL
Copyright (C) 2024 Mario Aichinger <aichingm@gmail.com>
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public
License as published by the Free Software Foundation, version 3.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
details.
You should have received a copy of the GNU Affero General Public License along with this program. If not, see
<https://www.gnu.org/licenses/>.
*/
#ifndef [name]_H
#define [name]_H
// Declarations
#if defined(IMPL_[name]) || defined(_CLANGD)
// Definitions
#endif
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment