mirror of
https://github.com/phpv8/v8js.git
synced 2024-12-22 17:31:53 +00:00
#210 Windows: Autodetect V8 API & V8 Engine Compiled Version - v8js_zeroPad
This commit is contained in:
parent
468d9e1090
commit
8575dc0e55
@ -1,6 +1,11 @@
|
|||||||
|
|
||||||
ARG_WITH("v8js", "for V8 Javascript Engine", "no");
|
ARG_WITH("v8js", "for V8 Javascript Engine", "no");
|
||||||
|
|
||||||
|
function v8js_zeroPad(num, places) {
|
||||||
|
var zero = places - num.toString().length + 1;
|
||||||
|
return Array(+(zero > 0 && zero)).join("0") + num;
|
||||||
|
}
|
||||||
|
|
||||||
if (PHP_V8JS != "no") {
|
if (PHP_V8JS != "no") {
|
||||||
if (CHECK_LIB("v8.lib", "v8js") &&
|
if (CHECK_LIB("v8.lib", "v8js") &&
|
||||||
CHECK_HEADER_ADD_INCLUDE("v8.h", "CFLAGS_V8JS")) {
|
CHECK_HEADER_ADD_INCLUDE("v8.h", "CFLAGS_V8JS")) {
|
||||||
|
Loading…
Reference in New Issue
Block a user