Sha256: 94d13e4895f3a35fa403dad1ee2a5bdc917ebf957261d2ec4419905bfd4e83e1

Contents?: true

Size: 424 Bytes

Versions: 2

Compression:

Stored size: 424 Bytes

Contents

#pragma once

#include <rice/rice.hpp>
#include "rdiscord_sdk.h"
#include "discord.h"
#include "common.h"

using namespace Rice;

extern Class rb_cActivity;
void rb_activity_init_class(Module module);

#define GET_ACTIVITY(obj) \
if (!obj.is_a(rb_cActivity)) { \
    rb_raise(rb_eTypeError, "Activity is not a Discord::Activity"); \
} \
discord::Activity* activity = getPrivateData<discord::Activity>(obj);

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rdiscord_sdk-1.1.1 ext/rdiscord_sdk/activity.h
rdiscord_sdk-1.1.0 ext/rdiscord_sdk/activity.h