ADD: num_CPUs(void) method from pm3 master

CHG: clean up in util.c
ADD: seems like mingw doesn't have scandir. Had to add one. *untested*
This commit is contained in:
iceman1001 2017-07-27 09:36:16 +02:00
commit 8f262aa1bf
6 changed files with 150 additions and 20 deletions

View file

@ -14,21 +14,21 @@ Arguments:
]]
---
-- A debug printout-function
function dbg(args)
local function dbg(args)
if DEBUG then
print("###", args)
print('###', args)
end
end
---
-- This is only meant to be used when errors occur
function oops(err)
print("ERROR: ",err)
local function oops(err)
print('ERROR: ',err)
end
---
-- Usage help
function help()
local function help()
print(desc)
print("Example usage")
print('Example usage')
print(example)
end