Mercurial > pub > dyncall > dyncall
view test/callback_suite/make-signatures.lua @ 663:127b569978cc default tip
- another tweak handling clang trying to be too smart (see last commit)
author | Tassilo Philipp |
---|---|
date | Sun, 24 Mar 2024 13:52:44 +0100 |
parents | f8856e29b512 |
children |
line wrap: on
line source
require "config" require "math" require "string" function randomSignatures() package.path = '../common/?.lua;' .. package.path require"rand-sig" end function orderedSignatures() package.path = '../common/?.lua;' .. package.path require"ordered-sig" end function designedSignatures() for line in io.lines(designfile) do io.write( line ) io.write( "\n" ) end end if mode == "random" then randomSignatures() elseif mode == "ordered" then orderedSignatures() elseif mode == "designed" then designedSignatures() else error("'mode' must be 'random', 'ordered' or 'designed'") end io.flush()