Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kdesp73/toho

A cli tool to convert a multi-file c library to a header-only one
https://github.com/kdesp73/toho

cli cli-tool file-generator golang header-only header-only-library

Last synced: about 1 month ago
JSON representation

A cli tool to convert a multi-file c library to a header-only one

Awesome Lists containing this project

README

        

# toho

Stands for `To` `H`eader `O`nly

A cli tool to convert a multi-file c library to a header only one

> [!WARNING]
> This tool currently works for the specific way
> I write C libraries. If you are using other conventions
> Some things might not work correctly.
> Use at your own risk

## Building

```bash
go build ./cmd/toho-cli
```

## Usage

```bash
$ toho
```

## Specify order of inclusion

To specify the order of inclusion of the header files, you can add a `// {index}` comment in them

So for including a file first add the `// {0}` comment in it

## LICENSE

[MIT](./LICENSE)