]> gitweb.factorcode.org Git - factor.git/blobdiff - extra/cuda/cuda.factor
change ERROR: words from throw-foo back to foo.
[factor.git] / extra / cuda / cuda.factor
index 54ae4a24ab8142744cb2d53a2bc74bb95ba8ae40..9ecaebce29b37bf18dd3571abf4f066518600424 100644 (file)
@@ -13,7 +13,7 @@ IN: cuda
 ERROR: cuda-error-state code ;
 
 : cuda-error ( code -- )
-    dup CUDA_SUCCESS = [ drop ] [ throw-cuda-error-state ] if ;
+    dup CUDA_SUCCESS = [ drop ] [ cuda-error-state ] if ;
 
 : cuda-version ( -- n )
     { c:int } [ cuDriverGetVersion cuda-error ] with-out-parameters ;