Kaynağa Gözat

Try not to crash the docs

Hugh 10 yıl önce
ebeveyn
işleme
b5a4a5a950
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      std/cpp/cppia/Host.hx

+ 1 - 1
std/cpp/cppia/Host.hx

@@ -12,7 +12,7 @@ class Host
    public static function main()
    public static function main()
    {
    {
       var script = Sys.args()[0];
       var script = Sys.args()[0];
-      #if !scriptable
+      #if (cpp && !scriptable)
       #error "Please define scriptable to use cppia"
       #error "Please define scriptable to use cppia"
       #end
       #end
       if (script==null)
       if (script==null)