Skip to content
This repository has been archived by the owner on Oct 22, 2021. It is now read-only.

Commit

Permalink
Add check for JS script object type
Browse files Browse the repository at this point in the history
  • Loading branch information
davisp committed Nov 11, 2011
1 parent 0b2c8fb commit f2e2e77
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions couchjs/c_src/SConscript
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,13 @@ if not env.GetOption('clean'):
conf.Define(vsn)
break

## Find the proper type for JS script objects

if conf.CheckType("JSScript*", '#include "%s"' % jsapi):
conf.Define("JSSCRIPT_TYPE", "JSScript*")
else:
conf.Define("JSSCRIPT_TYPE", "JSObject*")

## Define properties for -h / -V

(_, vsn) = runcmd("git describe --match 1.*")
Expand Down

0 comments on commit f2e2e77

Please sign in to comment.