impc:ti:scm_rt_check_string   scheme


Defined in:  https://github.com/digego/extempore/tree/v0.8.9/runtime/llvmti.xtm

Implementation

(define impc:ti:scm_rt_check_string
  (lambda (n closure-name)
    (let* ((os (make-string 0))
           (n1 (substring n 1 (string-length n)))
           (name-str (impc:ir:make-const-string (string-append closure-name " Scheme wrapper error: check the arg arity and types\n")))
           (name (impc:ir:gname)))
      (emit n "_bool = icmp ne i32 " n "_rt_check, 0\n" os)
      (emit "br i1 " n "_bool, label " n "_true, label " n "_false\n" os)
      (emit "\n" n1 "_true:\n" os)
      (emit "br label " n "_continue\n" os)
      (emit "\n" n1 "_false:\n" os)
      (emit name-str os)
      (emit "call i32 (i8*, ...) @printf(i8* " (car name) ")\n" os)
      (emit n "_errret = call ccc i8* @mk_i64(i8* %_sc, i64 0)\n" os)
      (emit "ret i8* " n "_errret\n" os)
      (emit "\n" n1 "_continue:\n" os)
      ;;(emit n " = call ccc double @r64value(i8* " n "_val)\n" os)
      (impc:ir:strip-space os))))


Back to Index

Similar Entries

  • AudioBuffer_cstring    xtlang
  • AudioBuffer_data_b64_cstring    xtlang
  • Csqrt    xtlang
  • PaDeviceInfo_toString    xtlang
  • PaHostApiInfo_toString    xtlang
  • PaHostErrorInfo_toString    xtlang
  • PaStreamCallbackTimeInfo_toString    xtlang
  • PaStreamInfo_toString    xtlang
  • PaStreamParameters_toString    xtlang
  • String    xtlang
  • String    xtlang
  • String_free    xtlang
  • String_h    xtlang
  • String_strlen    xtlang
  • Widget_checkbox    xtlang
  • Widget_checkbox    xtlang
  • Widget_checkbox_c    xtlang
  • Widget_split_vertical_p    xtlang
  • Windows-convert-unix-path    scheme
  • aiProcess_JoinIdenticalVertices    scheme
  • aiProcess_PreTransformVertices    scheme
  • aiProcess_SortByPType    scheme
  • ai_convert    xtlang
  • ai_print_export_formats    xtlang
  • anyatom->string    scheme
  • arrows_set_head_vert    xtlang
  • astra_start_body    xtlang
  • astra_start_rgb    xtlang
  • bind-lib-xtm-get-string    macro
  • bindfunc_with_docstring    xtlang
  • bindfunc_with_zone_size_and_docstring    xtlang
  • cart_to_pol    xtlang
  • cart_to_pol    xtlang
  • cart_to_pol    xtlang
  • cart_to_pol    xtlang
  • cart_to_pol2    xtlang
  • cas-xtm-to-string    scheme
  • cas2xtm_scm    xtlang
  • cef_string    xtlang
  • cef_string    xtlang
  • cef_string_clear    xtlang
  • cef_string_cmp    xtlang
  • cef_string_set    xtlang
  • cef_string_userfree_alloc    xtlang
  • cef_string_userfree_free    xtlang
  • cef_string_val    xtlang
  • cef_string_val    xtlang
  • cell_check_result    xtlang
  • cerberus_get_filtertype    xtlang
  • check-for-literal-match    scheme
  • check-token    scheme
  • cl:sort    scheme
  • cl:sort!    scheme
  • cl:sorted?    scheme
  • close-port    scheme
  • comb_fb_from_rtsixty    xtlang
  • cpTransformOrtho    xtlang
  • create_particles_shader    xtlang
  • create_shadertoy_shader    xtlang
  • cstring    xtlang
  • cstring    xtlang
  • distribute_particles    xtlang
  • dl_part_amp    xtlang
  • dl_part_amp    xtlang
  • file->string    scheme
  • fill_orthographic_matrix    xtlang
  • fill_orthographic_matrix    xtlang
  • get_filtertype    xtlang
  • ghttp_perform_POST_string    xtlang
  • ghttp_perform_PUT_string    xtlang
  • gl_draw_particles    xtlang
  • glfw_print_version_string    xtlang
  • godot_string    xtlang
  • godot_string_ascii    xtlang
  • godot_string_destroy    xtlang
  • godot_string_new    xtlang
  • godot_string_parse_utf8    xtlang
  • godot_string_pvar    xtlang
  • godot_string_var    xtlang
  • godot_variant_as_string    xtlang
  • godot_variant_new_string    xtlang
  • gstring_alloc    xtlang
  • gstring_halloc    xtlang
  • gstring_zalloc    xtlang
  • iffchunk_check_ID    xtlang
  • iffchunk_find_smart    xtlang
  • impc:aot:import-ll    scheme
  • impc:aot:insert-closure-binding-details    scheme
  • impc:aot:insert-ext-globalvar-binding-details    scheme
  • impc:aot:insert-footer    scheme
  • impc:aot:insert-forms    macro
  • impc:aot:insert-generic-func    scheme
  • impc:aot:insert-generic-type    scheme
  • impc:aot:insert-gl-proc-binding-details    scheme
  • impc:aot:insert-globalvar-binding-details    scheme
  • impc:aot:insert-header    scheme
  • impc:aot:insert-load-dylib-details    scheme
  • impc:aot:insert-namedtype-binding-details    scheme
  • impc:aot:insert-nativefunc-binding-details    scheme
  • impc:aot:insert-polyfunc-binding-details    scheme
  • impc:aot:insert-sexpr    scheme
  • impc:aot:insert-static-binding-details    scheme
  • impc:aot:insert-typealias-binding-details    scheme
  • impc:aot:insert-xtmacro-binding-details    scheme
  • impc:compiler:print-unsupported-conversion-error    scheme
  • impc:ir:check-type-size-calculations    scheme
  • impc:ir:compiler:bitconvert    scheme
  • impc:ir:compiler:closure-refcheck    scheme
  • impc:ir:convert-from-pretty-types    scheme
  • impc:ir:convert-types    scheme
  • impc:ir:genericfunc-stringify-generic-arg-strings    scheme
  • impc:ir:get-pretty-closure-arg-strings    scheme
  • impc:ir:get-pretty-tuple-arg-strings    scheme
  • impc:ir:make-const-string    scheme
  • impc:ir:make-string    scheme
  • impc:ir:str-list-check    scheme
  • impc:ti:array-ref-check    scheme
  • impc:ti:array-ref-ptr-check    scheme
  • impc:ti:array-set-check    scheme
  • impc:ti:begin-check    scheme
  • impc:ti:bitcast-check    scheme
  • impc:ti:bitconvert-check    scheme
  • impc:ti:block:check-for-free-syms    scheme
  • impc:ti:callback-check    scheme
  • impc:ti:carcdr-check    scheme
  • impc:ti:check-bang-against-reified    scheme
  • impc:ti:check-memzone-void?    scheme
  • impc:ti:check-to-update-generic-vars    scheme
  • impc:ti:closure-call-check    scheme
  • impc:ti:closure-ref-check    scheme
  • impc:ti:closure-refcheck-check    scheme
  • impc:ti:closure-set-check    scheme
  • impc:ti:closure:convert    scheme
  • impc:ti:coerce-check    scheme
  • impc:ti:compare-check    scheme
  • impc:ti:create-scm-wrapper?    scheme
  • impc:ti:create_zone-check    scheme
  • impc:ti:dotimes-check    scheme
  • impc:ti:fprintf-check    scheme
  • impc:ti:fptrcall-check    scheme
  • impc:ti:fptrcall-check    scheme
  • impc:ti:fscanf-check    scheme
  • impc:ti:get-builtin-docstring    scheme
  • impc:ti:get-closure-docstring    scheme
  • impc:ti:get-closure-or-nativefunc-docstring    scheme
  • impc:ti:get-globalvar-docstring    scheme
  • impc:ti:get-namedtype-docstring    scheme
  • impc:ti:get-nativefunc-docstring    scheme
  • impc:ti:get-polyfunc-docstring    scheme
  • impc:ti:get-typealias-docstring    scheme
  • impc:ti:get-xtmacro-docstring    scheme
  • impc:ti:heap-alloc-check    scheme
  • impc:ti:if-check    scheme
  • impc:ti:lambda-check    scheme
  • impc:ti:let-check    scheme
  • impc:ti:make-array-check    scheme
  • impc:ti:make-tuple-check    scheme
  • impc:ti:make-vector-check    scheme
  • impc:ti:math-check    scheme
  • impc:ti:math-intrinsic-check    scheme
  • impc:ti:nativef-check    scheme
  • impc:ti:nativef-generics-check-args    scheme
  • impc:ti:nativef-generics-check-return-type    scheme
  • impc:ti:nativef-poly-check    scheme
  • impc:ti:nativef-poly-check-match-ftypes    scheme
  • impc:ti:nativef-poly-exact-check    scheme
  • impc:ti:null-check    scheme
  • impc:ti:null?-check    scheme
  • impc:ti:num-of-elts-check    scheme
  • impc:ti:numeric-check    scheme
  • impc:ti:obj-size-check    scheme
  • impc:ti:pdref-check    scheme
  • impc:ti:pointer-ref-check    scheme
  • impc:ti:pointer-ref-ptr-check    scheme
  • impc:ti:pointer-set-check    scheme
  • impc:ti:pop_zone-check    scheme
  • impc:ti:pref-check    scheme
  • impc:ti:printf-check    scheme
  • impc:ti:push_new_zone-check    scheme
  • impc:ti:push_zone-check    scheme
  • impc:ti:ref-check    scheme
  • impc:ti:ret-check    scheme
  • impc:ti:run-type-check    scheme
  • impc:ti:run-type-check*    scheme
  • impc:ti:set-builtin-docstring    scheme
  • impc:ti:set-check    scheme
  • impc:ti:set-closure-docstring    scheme
  • impc:ti:set-globalvar-docstring    scheme
  • impc:ti:set-namedtype-docstring    scheme
  • impc:ti:set-nativefunc-docstring    scheme
  • impc:ti:set-typealias-docstring    scheme
  • impc:ti:set-xtmacro-docstring    scheme
  • impc:ti:sprintf-check    scheme
  • impc:ti:sscanf-check    scheme
  • impc:ti:stack-alloc-check    scheme
  • impc:ti:string-check    scheme
  • impc:ti:symbol-check    scheme
  • impc:ti:tuple-ref-check    scheme
  • impc:ti:tuple-ref-ptr-check    scheme
  • impc:ti:tuple-set-check    scheme
  • impc:ti:type-check    scheme
  • impc:ti:type-check-bound-lambda    scheme
  • impc:ti:vector-ref-check    scheme
  • impc:ti:vector-set-check    scheme
  • impc:ti:vector-shuffle-check    scheme
  • impc:ti:void-check    scheme
  • impc:ti:while-check    scheme
  • impc:ti:zone-alloc-check    scheme
  • input-output-port?    scheme
  • insert    xtlang
  • insert-at-index    scheme
  • invert    xtlang
  • invert-frag    scheme
  • invert_matrix    xtlang
  • ivl:invert    scheme
  • json_string_p    xtlang
  • kinect-start    xtlang
  • kinect_start    xtlang
  • light-and-shade-vert-xtm    scheme
  • light-vert    scheme
  • lilv_print_all_plugin_ports    xtlang
  • list->string    scheme
  • match-check-variable    scheme
  • match-check-variable-predicates    scheme
  • match-string    scheme
  • match_aiString    xtlang
  • midi_input_port_id    xtlang
  • midi_output_port_id    xtlang
  • move_particles    xtlang
  • my_checkbox_cb    xtlang
  • number->string    scheme
  • p:assert-match    scheme
  • particles-frag    scheme
  • particles-frag    scheme
  • particles-vert    scheme
  • particles-vert    scheme
  • passthrough-vert    scheme
  • pc:invert    scheme
  • pol_to_cart    xtlang
  • pol_to_cart    xtlang
  • pol_to_cart    xtlang
  • pol_to_cart    xtlang
  • pol_to_cart2    xtlang
  • print_device_feature_report    xtlang
  • print_particle    xtlang
  • psystem-add-particle    xtlang
  • psystem-particle-check    xtlang
  • psystem-set-particle    xtlang
  • psystem-set-particle    xtlang
  • quad-vert    scheme
  • repeat_And_Wrap_String    xtlang
  • return_ptr_gv_first_with_docstring    xtlang
  • return_ptr_gv_second_with_docstring    xtlang
  • rtmidi_default_callback:RtMidiCCallback    xtlang
  • rtmidi_print_ports    xtlang
  • rtmidi_process_message    xtlang
  • rtmidi_register_callback    xtlang
  • rtmidi_send    xtlang
  • rtod    xtlang
  • rtof    xtlang
  • rtoi1    xtlang
  • rtoi16    xtlang
  • rtoi32    xtlang
  • rtoi64    xtlang
  • rtoi8    xtlang
  • scmcas    scheme
  • set-data-particles    xtlang
  • shadertoy-loop    scheme
  • simple-bone-vert-xtm    scheme
  • simple-vert    scheme
  • simple-vert-xtm    scheme
  • start    xtlang
  • start    scheme
  • start-note    scheme
  • start_midi    xtlang
  • start_midi_scheduler    xtlang
  • stbi_flip_vertically    xtlang
  • string    scheme
  • string->anyatom    scheme
  • string->list    scheme
  • string->number    scheme
  • string->sexpr    scheme
  • string-ci<=?    scheme
  • string-ci<?    scheme
  • string-ci=?    scheme
  • string-ci>=?    scheme
  • string-ci>?    scheme
  • string-cmp?    scheme
  • string-copy    scheme
  • string-fill!    scheme
  • string<=?    scheme
  • string<?    scheme
  • string=?    scheme
  • string>=?    scheme
  • string>?    scheme
  • string_list_from_file    xtlang
  • string_list_from_string    xtlang
  • stringify    xtlang
  • stringify    xtlang
  • stringify    xtlang
  • stringify    xtlang
  • stringify    xtlang
  • stringify    xtlang
  • substring    xtlang
  • sys:load-preload-check    scheme
  • t:cleanup-string-type    scheme
  • test_g_cstring    xtlang
  • test_g_cstring1    xtlang
  • teststart    scheme
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString_help    xtlang
  • toString_help    xtlang
  • toString_help    xtlang
  • toString_return    xtlang
  • toString_space    xtlang
  • vertshader    scheme
  • vquicksort    xtlang
  • vquicksort    xtlang
  • vquicksort    xtlang
  • vquicksort    xtlang
  • vquicksort    xtlang
  • vquicksort    xtlang
  • vquicksort    xtlang
  • vsort    xtlang
  • vsort    xtlang
  • vsort    xtlang
  • vsort    xtlang
  • vsort    xtlang
  • vsort    xtlang
  • world_set_to_checkerboard    xtlang
  • xtm-setup-and-start-gl-loop    scheme
  • xtm_greaterthan    xtlang
  • xtm_greaterthan    xtlang
  • xtm_greaterthan    xtlang
  • xtm_greaterthan    xtlang
  • xtm_greaterthan    xtlang
  • xtm_greaterthan    xtlang
  • xtm_greaterthan    xtlang
  • xtm_greaterthan    xtlang
  • xtm_greaterthan    xtlang
  • xtm_start_note    xtlang
  • xtmdoc-export-caches-to-json    scheme
  • xtmvert    scheme
  • xtmvert-xtm    scheme
  • xtmvert0    scheme
  • xtmvert2    scheme
  • xtmvert3    scheme
  • xtmvert4    scheme
  • xtmvert5    scheme
  • xtmvertbone1    scheme
  • zero_check    xtlang