Example #1
0
    static ejsval
    ArrayType_get (ejsval env, ejsval _this, int argc, ejsval *args)
    {
        REQ_LLVM_TYPE_ARG (0, elementType);
        REQ_INT_ARG (1, numElements);

        return ArrayType_new (llvm::ArrayType::get(elementType, numElements));
    }
Example #2
0
    static EJS_NATIVE_FUNC(ArrayType_get) {
        REQ_LLVM_TYPE_ARG (0, elementType);
        REQ_INT_ARG (1, numElements);

        return ArrayType_new (llvm::ArrayType::get(elementType, numElements));
    }