Add version to rawstr4c

This commit is contained in:
Aoran Zeng
2025-07-14 03:45:17 +08:00
parent 65ca09e332
commit 6c07328071
5 changed files with 24 additions and 8 deletions

View File

@@ -1,4 +1,3 @@
#!/usr/bin/env raku
# ---------------------------------------------------------------
# SPDX-License-Identifier: GPL-3.0-or-later
# ---------------------------------------------------------------
@@ -14,6 +13,7 @@
unit module Generator;
use Parser;
use Version;
my class CStringConverter {
@@ -121,7 +121,7 @@ my class CVariableGenerator {
#pragma once
/**
* Generated by rawstr4c
* Generated by rawstr4c v{Version::VERSION}-{Version::RELEASE_DATE}
*
* Date: {DateTime.now.Str}
*/
@@ -149,7 +149,7 @@ my class CVariableGenerator {
method generate-c-source-file() {
my $source = qq:to/EOF/;
/**
* Generated by rawstr4c
* Generated by rawstr4c v{Version::VERSION}-{Version::RELEASE_DATE}
*
* Date: {DateTime.now.Str}
*/