A minimalistic programming language written in C89.
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

22 lignes
578 B

il y a 4 mois
il y a 4 mois
  1. cmake_minimum_required(VERSION 3.27)
  2. project(ink C)
  3. set(CMAKE_C_STANDARD 90)
  4. add_library(ink lib.c ink.h)
  5. # Uncomment to disable the redundant arithmetic
  6. # add_definitions(-DNOEXTRAARITHMETIC)
  7. # Uncomment to disable array types
  8. # add_definitions(-DNOARRAYLIB)
  9. # Ensures the interpreter doesn't use the standard C library functions
  10. # add_definitions(-DNOSTDLIB)
  11. add_executable(ink_exe main.c)
  12. target_link_libraries(ink_exe PUBLIC ink)
  13. # Benchmark is broken since the addition to coroutines
  14. # add_executable(ink_bench bench.c)
  15. # target_link_libraries(ink_bench PUBLIC ink)