Skip to content

Commit

Permalink
Update raylib extension
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiosvm committed Jan 11, 2025
1 parent 05e4ead commit c330dcf
Show file tree
Hide file tree
Showing 4 changed files with 2,507 additions and 66 deletions.
6 changes: 3 additions & 3 deletions extensions/curl.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,13 @@ static inline CURLcode curl_wrapper_setopt(CurlWrapper *wrapper, int opt, HkValu
{
if (opt == CURLOPT_URL)
{
// TODO: Check if val is an array
// TODO: Check if val is an array.
curl_wrapper_setopt_url(wrapper, hk_as_string(val));
return CURLE_OK;
}
if (opt == CURLOPT_HTTPHEADER)
{
// TODO: Check if val is an array
// TODO: Check if val is an array.
curl_wrapper_setopt_headers(wrapper, hk_as_array(val));
return CURLE_OK;
}
Expand Down Expand Up @@ -253,7 +253,7 @@ static void getinfo_call(HkVM *vm, HkValue *args)
hk_return_if_not_ok(vm);
CURL *curl = ((CurlWrapper *) hk_as_userdata(args[1]))->curl;
int info = (int) hk_as_number(args[2]);
// TODO: The type of value depends on info
// TODO: The type of value depends on info.
long value = 0;
curl_easy_getinfo(curl, info, &value);
hk_vm_push_number(vm, (double) value);
Expand Down
Loading

0 comments on commit c330dcf

Please sign in to comment.